fix(Scripts/Spells): Phantasmal Possessor's Posses spell should be ca… (#13884)

...sted only on base channel's expiration.
This commit is contained in:
UltraNix
2022-11-21 22:15:24 +01:00
committed by GitHub
parent b67412363d
commit 0564a2c2fa

View File

@@ -191,6 +191,11 @@ public:
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
if (GetTargetApplication()->GetRemoveMode() != AURA_REMOVE_BY_EXPIRE)
{
return;
}
if (Unit* caster = GetCaster())
if (Unit* target = GetTarget())
caster->CastSpell(target, 32830 /*POSSESS*/, true);