Misc fixes

This commit is contained in:
hondacrx
2022-05-30 13:57:03 -04:00
parent d5b3bf6a5a
commit 3beab79944
6 changed files with 16 additions and 83 deletions
+13
View File
@@ -1444,6 +1444,19 @@ namespace Scripts.Spells.Generic
}
}
class spell_gen_despawn_aura : AuraScript
{
void OnRemove(AuraEffect aurEff, AuraEffectHandleModes mode)
{
GetTarget().ToCreature()?.DespawnOrUnsummon();
}
public override void Register()
{
AfterEffectRemove.Add(new EffectApplyHandler(OnRemove, SpellConst.EffectFirstFound, AuraType.Dummy, AuraEffectHandleModes.Real));
}
}
[Script]
class spell_gen_despawn_self : SpellScript
{