v3.0.1: fixed rockfall traps not checking death before stunning

This commit is contained in:
Evan Debenham
2025-03-08 15:12:02 -05:00
committed by Evan Debenham
parent 20c60e6280
commit 88caf16b9b

View File

@@ -99,9 +99,9 @@ public class RockfallTrap extends Trap {
damage -= ch.drRoll();
ch.damage( Math.max(damage, 0) , this);
Buff.prolong( ch, Paralysis.class, Paralysis.DURATION );
if (!ch.isAlive() && ch == Dungeon.hero){
if (ch.isActive()) {
Buff.prolong(ch, Paralysis.class, Paralysis.DURATION);
} else if (!ch.isAlive() && ch == Dungeon.hero){
Dungeon.fail( this );
GLog.n( Messages.get(this, "ondeath") );
if (reclaimed) Badges.validateDeathFromFriendlyMagic();