version 1.63 | | version 1.64 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_effect_c = | | * static char *rcsid_spell_effect_c = |
* "$Id: spell_effect.c,v 1.63 2001/10/15 21:12:08 garbled Exp $"; | | * "$Id: spell_effect.c,v 1.64 2001/10/31 07:00:24 garbled Exp $"; |
*/ | | */ |
| | |
| | |
| | |
/* Safety check to make sure we don't get any mana storms in scorn */ | | /* Safety check to make sure we don't get any mana storms in scorn */ |
if (blocks_magic(op->map, op->x, op->y)) { | | if (blocks_magic(op->map, op->x, op->y)) { |
new_draw_info(NDI_UNIQUE, 0, op, "The magic warps and you are turned inside out!"); | | new_draw_info(NDI_UNIQUE, 0, op, "The magic warps and you are turned inside out!"); |
hit_player(tmp,9999,op,AT_INTERNAL); | | hit_player(tmp,9998,op,AT_INTERNAL); |
| | |
} else { | | } else { |
new_draw_info(NDI_UNIQUE, 0,op,"You lose control of the mana! The uncontrolled magic blasts you!"); | | new_draw_info(NDI_UNIQUE, 0,op,"You lose control of the mana! The uncontrolled magic blasts you!"); |
| | |
for(tmp=get_map_ob(op->map,op->x+i,op->y+j);tmp!=NULL;tmp=next) { | | for(tmp=get_map_ob(op->map,op->x+i,op->y+j);tmp!=NULL;tmp=next) { |
next=tmp->above; | | next=tmp->above; |
if(tmp&&QUERY_FLAG(tmp, FLAG_TEAR_DOWN)) | | if(tmp&&QUERY_FLAG(tmp, FLAG_TEAR_DOWN)) |
hit_player(tmp,9999,op,AT_PHYSICAL); | | hit_player(tmp,9998,op,AT_PHYSICAL); |
} | | } |
} | | } |
return 1; | | return 1; |
| | |
new_draw_info(NDI_UNIQUE, 0,plyr,"Your head explodes!"); | | new_draw_info(NDI_UNIQUE, 0,plyr,"Your head explodes!"); |
fire_arch (op, plyr,0, spellarch[SP_L_FIREBALL], SP_L_FIREBALL, 0); | | fire_arch (op, plyr,0, spellarch[SP_L_FIREBALL], SP_L_FIREBALL, 0); |
/* Explodes a large fireball centered at player */ | | /* Explodes a large fireball centered at player */ |
/* hit_player(plyr, 9999, op, AT_PHYSICAL);*/ | | /* hit_player(plyr, 9998, op, AT_PHYSICAL);*/ |
plyr->stats.sp = 2*maxsp; | | plyr->stats.sp = 2*maxsp; |
| | |
} | | } |