fix(Core/Players): Added error message for death knights attempting to lea… (#15420)
Core/Players: Added error message for death knights attempting to leave their starting zone early * cherry-pick commit (https://github.com/TrinityCore/TrinityCore/commit/2dc1b69a70f599539c479344c14ec60f98f535bc) Co-authored-by: Shauren <shauren.trinity@gmail.com>
This commit is contained in:
@@ -1462,7 +1462,10 @@ bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientati
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (getClass() == CLASS_DEATH_KNIGHT && GetMapId() == 609 && !IsGameMaster() && !HasSpell(50977))
|
if (getClass() == CLASS_DEATH_KNIGHT && GetMapId() == 609 && !IsGameMaster() && !HasSpell(50977))
|
||||||
|
{
|
||||||
|
SendTransferAborted(mapid, TRANSFER_ABORT_UNIQUE_MESSAGE, 1);
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// far teleport to another map
|
// far teleport to another map
|
||||||
Map* oldmap = IsInWorld() ? GetMap() : nullptr;
|
Map* oldmap = IsInWorld() ? GetMap() : nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user