v3.0.1: fixed rockfall traps not checking death before stunning
This commit is contained in:
committed by
Evan Debenham
parent
20c60e6280
commit
88caf16b9b
+2
-2
@@ -99,9 +99,9 @@ public class RockfallTrap extends Trap {
|
|||||||
damage -= ch.drRoll();
|
damage -= ch.drRoll();
|
||||||
ch.damage( Math.max(damage, 0) , this);
|
ch.damage( Math.max(damage, 0) , this);
|
||||||
|
|
||||||
|
if (ch.isActive()) {
|
||||||
Buff.prolong(ch, Paralysis.class, Paralysis.DURATION);
|
Buff.prolong(ch, Paralysis.class, Paralysis.DURATION);
|
||||||
|
} else if (!ch.isAlive() && ch == Dungeon.hero){
|
||||||
if (!ch.isAlive() && ch == Dungeon.hero){
|
|
||||||
Dungeon.fail( this );
|
Dungeon.fail( this );
|
||||||
GLog.n( Messages.get(this, "ondeath") );
|
GLog.n( Messages.get(this, "ondeath") );
|
||||||
if (reclaimed) Badges.validateDeathFromFriendlyMagic();
|
if (reclaimed) Badges.validateDeathFromFriendlyMagic();
|
||||||
|
|||||||
Reference in New Issue
Block a user