Skip to content

Commit 0b32c50

Browse files
authored
fix(Core/Spells): Don't remove shield-dependant auras in Dismantle (azerothcore#25658)
1 parent 6956fd2 commit 0b32c50

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/server/game/Entities/Player/Player.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12551,8 +12551,7 @@ bool Player::HasItemFitToSpellRequirements(SpellInfo const* spellInfo, Item cons
1255112551
return true;
1255212552

1255312553
// Keep active non-passive auras (e.g. Shield Wall) when disarmed
12554-
Item* offhand = GetItemByPos(INVENTORY_SLOT_BAG_0, EQUIPMENT_SLOT_OFFHAND);
12555-
if (!spellInfo->IsPassive() && offhand && offhand != ignoreItem)
12554+
if (!spellInfo->IsPassive() && HasAuraType(SPELL_AURA_MOD_DISARM_OFFHAND) && GetItemByPos(INVENTORY_SLOT_BAG_0, EQUIPMENT_SLOT_OFFHAND))
1255612555
{
1255712556
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
1255812557
if (spellInfo->Effects[i].IsAura())

0 commit comments

Comments
 (0)