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() {
|
MagicMissile.shadow(target.sprite.parent, pos, target.pos, new Callback() {
|
||||||
@Override
|
@Override
|
||||||
public void call() {
|
public void call() {
|
||||||
|
if (!finalTarget.isAlive()) return;
|
||||||
if (finalTarget == Dungeon.hero) {
|
if (finalTarget == Dungeon.hero) {
|
||||||
//almost kill the player
|
//almost kill the player
|
||||||
if (((float)finalTarget.HP/finalTarget.HT) >= 0.9f){
|
if (((float)finalTarget.HP/finalTarget.HT) >= 0.9f){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user