ulvis.paste.net

Paste Search Dynamic
Recent pastes
SPELL
  1. void JustSummoned(Creature* pSummoned)
  2.     {
  3.         if (pSummoned->GetEntry() == NPC_STALKER)
  4.         {
  5.             Unit* pTarget = m_creature->SelectAttackingTarget(ATTACKING_TARGET_RANDOM, 1);
  6.             if (!pTarget)
  7.                 pTarget = m_creature->getVictim();
  8.  
  9.             if (pTarget)
  10.             {
  11.                 pSummoned->GetMotionMaster()->Clear();
  12.                 pSummoned->GetMotionMaster()->MoveFollow(pTarget, 0.0f, 0.0f);
  13.                 pSummoned->CastSpell(pSummoned, SPELL_MOLTEN_FLAME, false, null, null, m_creature->GetObjectGuid());
  14.             }
  15.         }
  16.  
  17.         else if (pSummoned->GetEntry() == NPC_VOLCANO)
  18.             pSummoned->CastSpell(pSummoned, SPELL_VOLCANIC_ERUPTION_VOLCANO, false, null, null, m_creature->GetObjectGuid());
  19.     }
Parsed in 0.006 seconds