Skip to content

Commit

Permalink
Fix mummy death curses
Browse files Browse the repository at this point in the history
Oops x237
  • Loading branch information
Floodkiller committed Apr 2, 2019
1 parent 731b41b commit 1db982d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crawl-ref/source/spl-goditem.cc
Expand Up @@ -1165,7 +1165,7 @@ void torment_cell(coord_def where, actor *attacker, torment_source_type taux)
// Is the player in this cell? Sceptre of Torment doesn't affect the
// wielder
if (where == you.pos()
&& (!attacker->is_player() || taux != TORMENT_SCEPTRE))
&& !(attacker && attacker->is_player() || taux == TORMENT_SCEPTRE))
torment_player(attacker, taux);
// Don't return, since you could be standing on a monster.

Expand All @@ -1174,7 +1174,9 @@ void torment_cell(coord_def where, actor *attacker, torment_source_type taux)
if (!mons
|| !mons->alive()
|| mons->res_torment()
|| mons == attacker->as_monster() && taux == TORMENT_SCEPTRE)
|| attacker
&& mons == attacker->as_monster()
&& taux == TORMENT_SCEPTRE)
return;

int hploss = max(0, mons->hit_points * (50 - mons->res_negative_energy() * 5) / 100 - 1);
Expand Down

0 comments on commit 1db982d

Please sign in to comment.