fix(Scripts/Spells): Phantasmal Possessor's Posses spell should be ca… (#13884)
...sted only on base channel's expiration.
This commit is contained in:
@@ -191,6 +191,11 @@ public:
|
|||||||
|
|
||||||
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
||||||
{
|
{
|
||||||
|
if (GetTargetApplication()->GetRemoveMode() != AURA_REMOVE_BY_EXPIRE)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (Unit* caster = GetCaster())
|
if (Unit* caster = GetCaster())
|
||||||
if (Unit* target = GetTarget())
|
if (Unit* target = GetTarget())
|
||||||
caster->CastSpell(target, 32830 /*POSSESS*/, true);
|
caster->CastSpell(target, 32830 /*POSSESS*/, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user