Scripts/Pet: Lil' K.T
Port From (https://github.com/TrinityCore/TrinityCore/commit/74174332c6f8f8cda136c2804bad6c665724185d)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user