Browse Source

Fix 0 charge staff in speed spell (#6502)

* Fix 0 charge staff in speed spell
pull/7428/head
Eric Robinson 1 year ago committed by GitHub
parent
commit
793eb7a835
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      Source/items.cpp

2
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);
}

Loading…
Cancel
Save