Core/Auras: cleanly remove linked auras when unapplying effect

Port From (https://github.com/TrinityCore/TrinityCore/commit/ad2d904a75389c29c7613ce876368bf9563fcaaa)
This commit is contained in:
hondacrx
2021-09-09 13:36:37 -04:00
parent 4573123717
commit b027dd4da8
+1 -2
View File
@@ -4633,7 +4633,6 @@ namespace Game.Spells
if (apply)
{
CastSpellExtraArgs args = new(this);
if (GetAmount() != 0) // If amount avalible cast with basepoints (Crypt Fever for example)
args.AddSpellMod(SpellValueMod.BasePoint0, GetAmount());
@@ -4642,7 +4641,7 @@ namespace Game.Spells
else
{
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)