Core/Entities: Ethereal Soul-Trader

This commit is contained in:
Aokromes committed 2018-07-29 19:16:03 +02:00
1 parent 64780d7b31
commit 7dc8eea314
3 files changed
+146

No files matched your search

+27
View File
@@ -406,6 +406,32 @@ class npc_pet_gen_lil_ragnaros : public CreatureScript
}
};
enum SoulTrader
{
SAY_SOUL_TRADER_INTRO = 0,
SPELL_ETHEREAL_ONSUMMON = 50052,
SPELL_ETHEREAL_PET_REMOVE_AURA = 50055
};
struct npc_pet_gen_soul_trader : public ScriptedAI
{
npc_pet_gen_soul_trader(Creature* creature) : ScriptedAI(creature) { }
void LeavingWorld() override
{
if (Unit* owner = me->GetOwner())
DoCast(owner, SPELL_ETHEREAL_PET_REMOVE_AURA);
}
void JustAppeared() override
{
Talk(SAY_SOUL_TRADER_INTRO);
if (Unit* owner = me->GetOwner())
DoCast(owner, SPELL_ETHEREAL_ONSUMMON);
}
};
void AddSC_generic_pet_scripts()
{
new npc_pet_gen_baby_blizzard_bear();
@@ -413,4 +439,5 @@ void AddSC_generic_pet_scripts()
new npc_pet_gen_pandaren_monk();
new npc_pet_gen_mojo();
new npc_pet_gen_lil_ragnaros();
RegisterCreatureAI(npc_pet_gen_soul_trader);
}