v3.0.0: fixed recall inscription rarely causing crashes

This commit is contained in:
Evan Debenham
2024-12-31 13:15:01 -05:00
parent a9bce81575
commit fc69986244

View File

@@ -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();
}