Core/Players: Added error message for death knights attempting to leave their starting zone early

Port From (https://github.com/TrinityCore/TrinityCore/commit/a515443a598e4934bc4493b1858c76cb631d5b8a)
This commit is contained in:
hondacrx
2022-10-01 16:57:44 -04:00
parent 879451f799
commit 5b41cb0646
+3
View File
@@ -1778,7 +1778,10 @@ namespace Game.Entities
else
{
if (GetClass() == Class.Deathknight && GetMapId() == 609 && !IsGameMaster() && !HasSpell(50977))
{
SendTransferAborted(mapid, TransferAbortReason.UniqueMessage, 1);
return false;
}
// far teleport to another map
Map oldmap = IsInWorld ? GetMap() : null;