Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// Shado-pan StormBringer - 59808
- class npc_shadopan_stormbringer : public CreatureScript
- {
- public:
- npc_shadopan_stormbringer() : CreatureScript("npc_shadopan_stormbringer") { }
- struct npc_shadopan_stormbringerAI : public ScriptedAI
- {
- npc_shadopan_stormbringerAI(Creature* creature) : ScriptedAI(creature) {}
- void Reset() override
- {
- ApplyAllImmunities(true);
- if (Creature* l_UnstableEnergy = me->FindNearestCreature(NPC_UNSTABLE_ENERGY, 10.0f, true))
- {
- me->CastSpell(l_UnstableEnergy, eSpells::FOCUS_ENERGY, false);
- }
- }
- void JustDied(Unit* p_Killer)
- {
- // TODO; Sniff retail to get aura when creature dies
- }
- };
- CreatureAI* GetAI(Creature* creature) const
- {
- return new npc_shadopan_stormbringerAI(creature);
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement