Advertisement
poszer

mileposzer

Apr 29th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.02 KB | None | 0 0
  1.     if (ClosestGrave)
  2.     {
  3.         if (sDynRes->IsInDungeonOrRaid(this) && sDynRes->CheckForSpawnPoint(this))
  4.             sDynRes->DynamicResurrection(this);
  5.         else
  6.         {
  7.             TeleportTo(ClosestGrave->Map, ClosestGrave->x, ClosestGrave->y, ClosestGrave->z, GetOrientation());
  8.             if (isDead())                                        // not send if alive, because it used in TeleportTo()
  9.             {
  10.                 WorldPacket data(SMSG_DEATH_RELEASE_LOC, 4 * 4);  // show spirit healer position on minimap
  11.                 data << ClosestGrave->Map;
  12.                 data << ClosestGrave->x;
  13.                 data << ClosestGrave->y;
  14.                 data << ClosestGrave->z;
  15.                 GetSession()->SendPacket(&data);
  16.             }
  17.         }
  18.     }
  19.     else if (GetPositionZ() < GetMap()->GetMinHeight(GetPositionX(), GetPositionY()))
  20.         TeleportTo(m_homebindMapId, m_homebindX, m_homebindY, m_homebindZ, GetOrientation());
  21.  
  22.     RemoveFlag(PLAYER_FLAGS, PLAYER_FLAGS_IS_OUT_OF_BOUNDS);
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement