Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. if (checkTimer <= diff)
  2. {
  3. Player* player = me->FindNearestPlayer(100.0f, true);
  4. if (player && me->IsWithinMeleeRange(player))
  5. {
  6. if (!me->HasAura(SPELL_FEIGN_DEATH))
  7. {
  8. me->GetMotionMaster()->Clear();
  9. DoCast(me, SPELL_FEIGN_DEATH, true);
  10. me->SetStandState(UNIT_STAND_STATE_DEAD);
  11. checkTimer = 5000;
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement