Core/Quest: Fix crash caused by disabled quests

Port From (https://github.com/TrinityCore/TrinityCore/commit/330881518a5912939a2a26a7f3dbc64ccf74b5cc)
This commit is contained in:
hondacrx
2021-09-26 14:29:52 -04:00
parent fdc78a2350
commit c67811c52e
2 changed files with 3 additions and 9 deletions
-6
View File
@@ -367,12 +367,6 @@ namespace Game
}
return false;
case DisableType.Quest:
if (refe == null)
return true;
Player player1 = refe.ToPlayer();
if (player1 != null)
if (player1.IsGameMaster())
return false;
return true;
case DisableType.Battleground:
case DisableType.OutdoorPVP: