From 17d38364383634c41a0f75c045bbff612db05026 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 4 Mar 2018 23:18:17 -0500 Subject: [PATCH] Core/Player: Fixed HasItemFitToSpellRequirements for SPELL_ATTR8_ARMOR_SPECIALIZATION --- Source/Game/Entities/Player/Player.Spells.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Game/Entities/Player/Player.Spells.cs b/Source/Game/Entities/Player/Player.Spells.cs index 00a3998a0..dac96b91e 100644 --- a/Source/Game/Entities/Player/Player.Spells.cs +++ b/Source/Game/Entities/Player/Player.Spells.cs @@ -1687,12 +1687,15 @@ namespace Game.Entities } 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 }) { Item item = GetUseableItemByPos(InventorySlots.Bag0, i); - if (!item || !item.IsFitToSpellRequirements(spellInfo)) + if (!item || item == ignoreItem || !item.IsFitToSpellRequirements(spellInfo)) return false; } + + return true; } break; }