mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
Core/Auras: cleanly remove linked auras when unapplying effect
Closes #21588
(cherry picked from commit 8a8c7793c4)
This commit is contained in:
@@ -4926,9 +4926,7 @@ void AuraEffect::HandleAuraLinked(AuraApplication const* aurApp, uint8 mode, boo
|
||||
{
|
||||
if (apply)
|
||||
{
|
||||
|
||||
CastSpellExtraArgs args(this);
|
||||
|
||||
if (GetAmount()) // If amount avalible cast with basepoints (Crypt Fever for example)
|
||||
args.AddSpellMod(SPELLVALUE_BASE_POINT0, GetAmount());
|
||||
|
||||
@@ -4937,7 +4935,7 @@ void AuraEffect::HandleAuraLinked(AuraApplication const* aurApp, uint8 mode, boo
|
||||
else
|
||||
{
|
||||
ObjectGuid casterGUID = triggeredSpellInfo->NeedsToBeTriggeredByCaster(m_spellInfo) ? GetCasterGUID() : target->GetGUID();
|
||||
target->RemoveAura(triggeredSpellId, casterGUID, 0, aurApp->GetRemoveMode());
|
||||
target->RemoveAura(triggeredSpellId, casterGUID);
|
||||
}
|
||||
}
|
||||
else if (mode & AURA_EFFECT_HANDLE_REAPPLY && apply)
|
||||
|
||||
Reference in New Issue
Block a user