From bc020cfa5b4579ccbad8ba124edcefd5c2c94005 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 8 Aug 2016 20:11:11 -0400 Subject: [PATCH] v0.4.1a: adjusted timing for invisibility dispel --- .../shatteredpixeldungeon/actors/hero/Hero.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java index af7dd4565..14b65dc23 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java @@ -856,7 +856,8 @@ public class Hero extends Char { enemy = action.target; if (enemy.isAlive() && canAttack( enemy ) && !isCharmedBy( enemy )) { - + + Invisibility.dispel(); spend( attackDelay() ); sprite.attack( enemy.pos ); @@ -1386,8 +1387,6 @@ public class Hero extends Char { } curAction = null; - - Invisibility.dispel(); super.onAttackComplete(); }