Skip to content

Commit

Permalink
Fix 0 charge staff in speed spell (#6502)
Browse files Browse the repository at this point in the history
* Fix 0 charge staff in speed spell
  • Loading branch information
kphoenix137 authored Sep 23, 2024
1 parent 9f197f5 commit 793eb7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 793eb7a

Please sign in to comment.