v0.4.1: fixed a bug where grim traps would kill the player several times over

This commit is contained in:
Evan Debenham 2016-06-24 18:34:02 -04:00
parent a6c6b8c6e3
commit d300038244

View File

@ -69,7 +69,7 @@ public class GrimTrap extends Trap {
MagicMissile.shadow(target.sprite.parent, pos, target.pos, new Callback() {
@Override
public void call() {
if (!finalTarget.isAlive()) return;
if (finalTarget == Dungeon.hero) {
//almost kill the player
if (((float)finalTarget.HP/finalTarget.HT) >= 0.9f){