From 265805f283be4c9125f44262c2beb530a37a8228 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 6 Jan 2025 14:32:45 -0500 Subject: [PATCH] v3.0.0: fixed recent recall inscription fix resulting in 0 charge cost --- .../actors/hero/spells/RecallInscription.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/RecallInscription.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/RecallInscription.java index 8115e210f..d7c96e672 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/RecallInscription.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/RecallInscription.java @@ -65,7 +65,6 @@ public class RecallInscription extends ClericSpell { } Item item = Reflection.newInstance(hero.buff(UsedItemTracker.class).item); - hero.buff(UsedItemTracker.class).detach(); item.setCurrent(hero); @@ -85,6 +84,9 @@ public class RecallInscription extends ClericSpell { } onSpellCast(tome, hero); + if (hero.buff(UsedItemTracker.class) != null){ + hero.buff(UsedItemTracker.class).detach(); + } }