From 094f308d22f045dc4e1191a08a0fc12999f7e734 Mon Sep 17 00:00:00 2001 From: Juliano Leal Goncalves Date: Sat, 11 Sep 2021 18:00:37 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Use=20'Spell'=20instead=20of=20'?= =?UTF-8?q?RSpell'=20for=20clearing=20used=20staff=20charges?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Readied spell can be swapped to something else in between the cast and the hit frame, resulting in incorrect removal. This is how currently belt and inventory scrolls are checked so we are now using a consistent strategy. --- Source/inv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/inv.cpp b/Source/inv.cpp index 4007481e4..0c3729bd2 100644 --- a/Source/inv.cpp +++ b/Source/inv.cpp @@ -1960,7 +1960,7 @@ void UseStaffCharge(Player &player) { auto &staff = player.InvBody[INVLOC_HAND_LEFT]; - if (!CanUseStaff(staff, player._pRSpell)) + if (!CanUseStaff(staff, player._pSpell)) return; staff._iCharges--;