Core/Auras: cleanly remove linked auras when unapplying effect
Port From (https://github.com/TrinityCore/TrinityCore/commit/ad2d904a75389c29c7613ce876368bf9563fcaaa)
This commit is contained in:
@@ -4633,7 +4633,6 @@ namespace Game.Spells
|
|||||||
if (apply)
|
if (apply)
|
||||||
{
|
{
|
||||||
CastSpellExtraArgs args = new(this);
|
CastSpellExtraArgs args = new(this);
|
||||||
|
|
||||||
if (GetAmount() != 0) // If amount avalible cast with basepoints (Crypt Fever for example)
|
if (GetAmount() != 0) // If amount avalible cast with basepoints (Crypt Fever for example)
|
||||||
args.AddSpellMod(SpellValueMod.BasePoint0, GetAmount());
|
args.AddSpellMod(SpellValueMod.BasePoint0, GetAmount());
|
||||||
|
|
||||||
@@ -4642,7 +4641,7 @@ namespace Game.Spells
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
ObjectGuid casterGUID = triggeredSpellInfo.NeedsToBeTriggeredByCaster(m_spellInfo) ? GetCasterGUID() : target.GetGUID();
|
ObjectGuid casterGUID = triggeredSpellInfo.NeedsToBeTriggeredByCaster(m_spellInfo) ? GetCasterGUID() : target.GetGUID();
|
||||||
target.RemoveAura(triggeredSpellId, casterGUID, 0, aurApp.GetRemoveMode());
|
target.RemoveAura(triggeredSpellId, casterGUID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (mode.HasAnyFlag(AuraEffectHandleModes.Reapply) && apply)
|
else if (mode.HasAnyFlag(AuraEffectHandleModes.Reapply) && apply)
|
||||||
|
|||||||
Reference in New Issue
Block a user