Core/Player: Fixed HasItemFitToSpellRequirements for SPELL_ATTR8_ARMOR_SPECIALIZATION

This commit is contained in:
hondacrx
2018-03-04 23:18:17 -05:00
parent 00f2a3fa19
commit 17d3836438
+4 -1
View File
@@ -1687,12 +1687,15 @@ namespace Game.Entities
} }
else else
{ {
// requires item equipped in all armor slots
foreach (byte i in new[] { EquipmentSlot.Head, EquipmentSlot.Shoulders, EquipmentSlot.Chest, EquipmentSlot.Waist, EquipmentSlot.Legs, EquipmentSlot.Feet, EquipmentSlot.Wrist, EquipmentSlot.Hands }) foreach (byte i in new[] { EquipmentSlot.Head, EquipmentSlot.Shoulders, EquipmentSlot.Chest, EquipmentSlot.Waist, EquipmentSlot.Legs, EquipmentSlot.Feet, EquipmentSlot.Wrist, EquipmentSlot.Hands })
{ {
Item item = GetUseableItemByPos(InventorySlots.Bag0, i); Item item = GetUseableItemByPos(InventorySlots.Bag0, i);
if (!item || !item.IsFitToSpellRequirements(spellInfo)) if (!item || item == ignoreItem || !item.IsFitToSpellRequirements(spellInfo))
return false; return false;
} }
return true;
} }
break; break;
} }