v0.4.1: fixed a bug where grim traps would kill the player several times over
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user