daily pastebin goal
70%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top