From 793eb7a835f11e39cc08e052df72c477fb2c155d Mon Sep 17 00:00:00 2001 From: Eric Robinson <68359262+kphoenix137@users.noreply.github.com> Date: Mon, 23 Sep 2024 14:37:19 -0400 Subject: [PATCH] Fix 0 charge staff in speed spell (#6502) * Fix 0 charge staff in speed spell --- Source/items.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/items.cpp b/Source/items.cpp index 2c7effdee29..c66085443d1 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -2809,7 +2809,7 @@ void CalcPlrItemVals(Player &player, bool loadgfx) maxDamage += item._iMaxDam; ac += item._iAC; - if (IsValidSpell(item._iSpell)) { + if (IsValidSpell(item._iSpell) && item._iCharges != 0) { spells |= GetSpellBitmask(item._iSpell); }