🐛 Use 'Spell' instead of 'RSpell' for clearing used staff charges

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.
This commit is contained in:
Juliano Leal Goncalves 2021-09-11 18:00:37 -03:00 committed by Anders Jenbo
commit 094f308d22

View file

@ -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--;