fix(Core/SpellMgr): Essence of Wintergrasp only applies if config is enabled (#4110)
This commit is contained in:
@@ -1109,6 +1109,9 @@ bool SpellArea::IsFitToRequirements(Player const* player, uint32 newZone, uint32
|
|||||||
if (!player)
|
if (!player)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (!sWorld->getBoolConfig(CONFIG_WINTERGRASP_ENABLE))
|
||||||
|
return false;
|
||||||
|
|
||||||
Battlefield* Bf = sBattlefieldMgr->GetBattlefieldByBattleId(BATTLEFIELD_BATTLEID_WG);
|
Battlefield* Bf = sBattlefieldMgr->GetBattlefieldByBattleId(BATTLEFIELD_BATTLEID_WG);
|
||||||
if (!Bf || player->GetTeamId() != Bf->GetDefenderTeam() || Bf->IsWarTime())
|
if (!Bf || player->GetTeamId() != Bf->GetDefenderTeam() || Bf->IsWarTime())
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user