From fc69986244c9e1802edbd7f980ab3413c0825c56 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 31 Dec 2024 13:15:01 -0500 Subject: [PATCH] v3.0.0: fixed recall inscription rarely causing crashes --- .../actors/hero/spells/RecallInscription.java | 2 +- 1 file changed, 1 insertion(+), 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 6b0242d33..8115e210f 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,6 +65,7 @@ public class RecallInscription extends ClericSpell { } Item item = Reflection.newInstance(hero.buff(UsedItemTracker.class).item); + hero.buff(UsedItemTracker.class).detach(); item.setCurrent(hero); @@ -84,7 +85,6 @@ public class RecallInscription extends ClericSpell { } onSpellCast(tome, hero); - hero.buff(UsedItemTracker.class).detach(); }