mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-29 16:43:47 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user