Browse Source

Update player.cpp

pull/8385/head
Eric Robinson 3 months ago
parent
commit
51d6b342fe
  1. 1
      Source/player.cpp

1
Source/player.cpp

@ -462,6 +462,7 @@ bool DamageWeapon(Player &player, unsigned damageFrequency, int numDurLost)
const int otherSlot = (slot == minHandSlot) ? maxHandSlot : minHandSlot; const int otherSlot = (slot == minHandSlot) ? maxHandSlot : minHandSlot;
const Item &otherItem = player.InvBody[otherSlot]; const Item &otherItem = player.InvBody[otherSlot];
// Do not damage shields when a weapon is equipped
if (item._itype == ItemType::Shield && !otherItem.isEmpty()) if (item._itype == ItemType::Shield && !otherItem.isEmpty())
continue; continue;

Loading…
Cancel
Save