v3.0.1: fixed rockfall traps not checking death before stunning
This commit is contained in:
committed by
Evan Debenham
parent
20c60e6280
commit
88caf16b9b
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user