hondacrx
2022-07-02 15:54:54 -04:00
parent cabb59efe8
commit 2cb497075c
2 changed files with 100 additions and 7 deletions
+26
View File
@@ -33,6 +33,10 @@ namespace Scripts.Pets
//SoulTrader
public const uint EtherealOnSummon = 50052;
public const uint EtherealPetRemoveAura = 50055;
//LichPet
public const uint LichOnSummon = 69735;
public const uint LichRemoveAura = 69736;
}
struct TextIds
@@ -67,5 +71,27 @@ namespace Scripts.Pets
base.JustAppeared();
}
}
[Script]
class npc_pet_lich : ScriptedAI
{
public npc_pet_lich(Creature creature) : base(creature) { }
public override void LeavingWorld()
{
Unit owner = me.GetOwner();
if (owner != null)
DoCast(owner, SpellIds.LichRemoveAura);
}
public override void JustAppeared()
{
Unit owner = me.GetOwner();
if (owner != null)
DoCast(owner, SpellIds.LichOnSummon);
base.JustAppeared();
}
}
}
}