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