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:
@@ -1778,7 +1778,10 @@ namespace Game.Entities
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (GetClass() == Class.Deathknight && GetMapId() == 609 && !IsGameMaster() && !HasSpell(50977))
|
if (GetClass() == Class.Deathknight && GetMapId() == 609 && !IsGameMaster() && !HasSpell(50977))
|
||||||
|
{
|
||||||
|
SendTransferAborted(mapid, TransferAbortReason.UniqueMessage, 1);
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// far teleport to another map
|
// far teleport to another map
|
||||||
Map oldmap = IsInWorld ? GetMap() : null;
|
Map oldmap = IsInWorld ? GetMap() : null;
|
||||||
|
|||||||
Reference in New Issue
Block a user