From f1063c1e0de886db7ada09755d1b1ac4eda6ebec Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 17 May 2018 20:11:05 -0400 Subject: [PATCH] v0.6.5c: fixed a serious exploit involving the timekeeper's hourglass --- .../shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java index 536a5a7b7..0bdd4113a 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java @@ -874,7 +874,6 @@ public class Hero extends Char { if (enemy.isAlive() && canAttack( enemy ) && !isCharmedBy( enemy )) { - spend( attackDelay() ); sprite.attack( enemy.pos ); return false; @@ -1433,6 +1432,7 @@ public class Hero extends Char { } Invisibility.dispel(); + spend( attackDelay() ); curAction = null;