Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // stop countdown until repop
- m_deathTimer = 0;
- // if no grave found, stay at the current location
- // and don't show spirit healer location
- if (ClosestGrave)
- {
- + if (GetMapId() != 560) // skip durnhold custom pvp area
- TeleportTo(ClosestGrave->map_id, ClosestGrave->x, ClosestGrave->y, ClosestGrave->z, GetOrientation());
- if (isDead()) // not send if alive, because it used in TeleportTo()
- {
- WorldPacket data(SMSG_DEATH_RELEASE_LOC, 4*4); // show spirit healer position on minimap
- data << ClosestGrave->map_id;
- data << TaggedPosition<Position::XYZ>(ClosestGrave->x, ClosestGrave->y, ClosestGrave->z);
- SendDirectMessage(&data);
- }
- }
- else if (GetPositionZ() < GetMap()->GetMinHeight(GetPositionX(), GetPositionY()))
- + if (GetMapId() != 560) // skip durnhold custom pvp area
- TeleportTo(m_homebindMapId, m_homebindX, m_homebindY, m_homebindZ, GetOrientation());
- RemoveFlag(PLAYER_FLAGS, PLAYER_FLAGS_IS_OUT_OF_BOUNDS);
- }
- bool Player::CanJoinConstantChannelInZone(ChatChannelsEntry const* channel, AreaTableEntry const* zone) const
Advertisement
Add Comment
Please, Sign In to add comment