Core/Auras:
Fix removing auras when player reset talents or changing/leaving shapeshift Close #10763 Close #10809
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user