version 1.134 | | version 1.135 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.134 2005/09/04 16:58:12 akirschbaum Exp $"; | | * "$Id: apply.c,v 1.135 2005/09/09 21:09:40 akirschbaum Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
| | |
if(op->type!=PLAYER) | | if(op->type!=PLAYER) |
return 0; | | return 0; |
if (get_map_flags(op->map,NULL, op->x,op->y, NULL, NULL) & P_NO_MAGIC) { | | if (!QUERY_FLAG(op, FLAG_WIZCAST) && (get_map_flags(op->map, NULL, op->x, op->y, NULL, NULL) & P_NO_MAGIC)) { |
new_draw_info(NDI_UNIQUE, 0,op,"Something blocks the magic of the scroll."); | | new_draw_info(NDI_UNIQUE, 0,op,"Something blocks the magic of the scroll."); |
return 0; | | return 0; |
} | | } |
| | |
{ | | { |
object *armor; | | object *armor; |
| | |
if (get_map_flags(op->map,NULL, op->x,op->y,NULL, NULL) & P_NO_MAGIC) { | | if (!QUERY_FLAG(op, FLAG_WIZCAST) && (get_map_flags(op->map, NULL, op->x, op->y, NULL, NULL) & P_NO_MAGIC)) { |
new_draw_info(NDI_UNIQUE, 0,op,"Something blocks the magic of the scroll."); | | new_draw_info(NDI_UNIQUE, 0,op,"Something blocks the magic of the scroll."); |
return; | | return; |
} | | } |