From 48d5382a01553353d0433df769ae82a73e011052 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 6 Dec 2024 17:09:18 -0500 Subject: [PATCH] v3.0.0: fixed timing errors with bless just before alpha-5 release --- .../shatteredpixeldungeon/actors/hero/spells/BlessSpell.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/BlessSpell.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/BlessSpell.java index 1702c8cb6..889df3ffa 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/BlessSpell.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/BlessSpell.java @@ -70,6 +70,7 @@ public class BlessSpell extends TargetedClericSpell { ch.sprite.showStatusWithIcon( CharSprite.POSITIVE, Integer.toString(5 + 5*hero.pointsInTalent(Talent.BLESS)), FloatingText.SHIELDING ); hero.busy(); hero.sprite.operate(ch.pos); + hero.spend( 1f ); } else { Buff.prolong(ch, Bless.class, 5f + 5*hero.pointsInTalent(Talent.BLESS)); int totalHeal = 5 + 10*hero.pointsInTalent(Talent.BLESS); @@ -87,8 +88,8 @@ public class BlessSpell extends TargetedClericSpell { } hero.sprite.zap(ch.pos); + hero.spendAndNext( 1f ); } - hero.spend( 1f ); onSpellCast(tome, hero); }