… | |
… | |
1200 | if (effect->attacktype & AT_DEATH) |
1200 | if (effect->attacktype & AT_DEATH) |
1201 | { |
1201 | { |
1202 | effect->level = spell->stats.dam + SP_level_dam_adjust (caster, spell); |
1202 | effect->level = spell->stats.dam + SP_level_dam_adjust (caster, spell); |
1203 | |
1203 | |
1204 | /* casting death spells at undead isn't a good thing */ |
1204 | /* casting death spells at undead isn't a good thing */ |
1205 | if QUERY_FLAG |
|
|
1206 | (target, FLAG_UNDEAD) |
1205 | if (QUERY_FLAG (target, FLAG_UNDEAD)) |
1207 | { |
1206 | { |
1208 | if (random_roll (0, 2, op, PREFER_LOW)) |
1207 | if (random_roll (0, 2, op, PREFER_LOW)) |
1209 | { |
1208 | { |
1210 | new_draw_info (NDI_UNIQUE, 0, op, "Idiot! Your spell boomerangs!"); |
1209 | new_draw_info (NDI_UNIQUE, 0, op, "Idiot! Your spell boomerangs!"); |
1211 | effect->x = op->x; |
1210 | effect->x = op->x; |