fix(Core/SpellMgr): Essence of Wintergrasp only applies if config is enabled (#4110)
This commit is contained in:
parent
27a0a59509
commit
5a1bb5bc66
1 changed files with 3 additions and 0 deletions
|
|
@ -1109,6 +1109,9 @@ bool SpellArea::IsFitToRequirements(Player const* player, uint32 newZone, uint32
|
|||
if (!player)
|
||||
return false;
|
||||
|
||||
if (!sWorld->getBoolConfig(CONFIG_WINTERGRASP_ENABLE))
|
||||
return false;
|
||||
|
||||
Battlefield* Bf = sBattlefieldMgr->GetBattlefieldByBattleId(BATTLEFIELD_BATTLEID_WG);
|
||||
if (!Bf || player->GetTeamId() != Bf->GetDefenderTeam() || Bf->IsWarTime())
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue