Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. /// Shado-pan StormBringer - 59808
  2. class npc_shadopan_stormbringer : public CreatureScript
  3. {
  4. public:
  5. npc_shadopan_stormbringer() : CreatureScript("npc_shadopan_stormbringer") { }
  6.  
  7. struct npc_shadopan_stormbringerAI : public ScriptedAI
  8. {
  9. npc_shadopan_stormbringerAI(Creature* creature) : ScriptedAI(creature) {}
  10.  
  11. void Reset() override
  12. {
  13. ApplyAllImmunities(true);
  14.  
  15. if (Creature* l_UnstableEnergy = me->FindNearestCreature(NPC_UNSTABLE_ENERGY, 10.0f, true))
  16. {
  17. me->CastSpell(l_UnstableEnergy, eSpells::FOCUS_ENERGY, false);
  18. }
  19. }
  20.  
  21. void JustDied(Unit* p_Killer)
  22. {
  23. // TODO; Sniff retail to get aura when creature dies
  24. }
  25. };
  26.  
  27. CreatureAI* GetAI(Creature* creature) const
  28. {
  29. return new npc_shadopan_stormbringerAI(creature);
  30. }
  31. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement