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 (2dc1b69a70)

Co-authored-by: Shauren <shauren.trinity@gmail.com>
This commit is contained in:
Kitzunu
2023-04-02 20:32:47 +02:00
committed by GitHub
parent 29d79e080f
commit e91d62dce6

View File

@@ -1462,7 +1462,10 @@ bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientati
else
{
if (getClass() == CLASS_DEATH_KNIGHT && GetMapId() == 609 && !IsGameMaster() && !HasSpell(50977))
{
SendTransferAborted(mapid, TRANSFER_ABORT_UNIQUE_MESSAGE, 1);
return false;
}
// far teleport to another map
Map* oldmap = IsInWorld() ? GetMap() : nullptr;