diff options
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r-- | src/game/Player.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 88507ffac86..e081958cf38 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -1773,7 +1773,7 @@ bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientati else { if(getClass() == CLASS_DEATH_KNIGHT && GetMapId() == 609 && !isGameMaster() - && !IsActiveQuest(13165)) + && !HasSpell(SPELL_ID_DEATH_GATE)) return false; // far teleport to another map @@ -18828,6 +18828,15 @@ void Player::ReportedAfkBy(Player* reporter) } } +WorldLocation Player::GetStartPosition() const +{ + PlayerInfo const *info = objmgr.GetPlayerInfo(getRace(), getClass()); + uint32 mapId = info->mapId; + if(getClass() == CLASS_DEATH_KNIGHT && HasSpell(SPELL_ID_DEATH_GATE)) + mapId = 0; + return WorldLocation(mapId, info->positionX, info->positionY, info->positionZ, 0); +} + bool Player::canSeeOrDetect(Unit const* u, bool detect, bool inVisibleList, bool is3dDistance) const { // Always can see self |