Skip to content

Commit

Permalink
Fix dual-wield not removing after unlearning talents for Enhancement …
Browse files Browse the repository at this point in the history
…Shamans.
  • Loading branch information
kotishe committed Aug 15, 2016
1 parent 66968dc commit 120f929
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/game/Player.cpp
Expand Up @@ -3263,6 +3263,18 @@ void Player::RemoveSpell(uint32 spell_id, bool disabled)
for (uint32 i = reqMap.count(spell_id); i > 0; i--, ++itr2)
RemoveSpell(itr2->second, disabled);

if (CanDualWield())
{
SpellEntry const *spellInfo = sSpellStore.LookupEntry(spell_id);

if (spellInfo)
if (spellInfo->Effect[0] != SPELL_EFFECT_DUAL_WIELD ||
spellInfo->Effect[1] != SPELL_EFFECT_DUAL_WIELD ||
spellInfo->Effect[2] != SPELL_EFFECT_DUAL_WIELD ||
spellInfo->Effect[3] != SPELL_EFFECT_DUAL_WIELD)
SetCanDualWield(false);
}

// removing
WorldPacket data(SMSG_REMOVED_SPELL, 4);
data << uint16(spell_id);
Expand Down

0 comments on commit 120f929

Please sign in to comment.