Core/Auras:

Fix removing auras when player reset talents or changing/leaving shapeshift

Close #10763
Close #10809
This commit is contained in:
zorix
2013-09-18 18:09:29 +02:00
parent aa6736cfcc
commit cac1968ab7
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -4028,7 +4028,7 @@ void Player::removeSpell(uint32 spell_id, bool disabled, bool learn_low_rank)
itr->second->state = PLAYERSPELL_REMOVED;
}
RemoveAurasDueToSpell(spell_id);
RemoveOwnedAura(spell_id, GetGUID());
// remove pet auras
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
@@ -1254,9 +1254,9 @@ void AuraEffect::HandleShapeshiftBoosts(Unit* target, bool apply) const
else
{
if (spellId)
target->RemoveAurasDueToSpell(spellId);
target->RemoveOwnedAura(spellId, target->GetGUID());
if (spellId2)
target->RemoveAurasDueToSpell(spellId2);
target->RemoveOwnedAura(spellId2, target->GetGUID());
// Improved Barkskin - apply/remove armor bonus due to shapeshift
if (Player* player=target->ToPlayer())