From df36e4b95d96732c038ab6a30af2a398e93d4b08 Mon Sep 17 00:00:00 2001 From: SnapperRy Date: Tue, 4 Oct 2016 15:51:44 +0200 Subject: DB/Conditions: quests Southern Sabotage and Toppling the Towers are only available if the respective faction is defending Wintergrasp. Also codestyle stealthfix. --- src/server/game/Conditions/ConditionMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/game/Conditions/ConditionMgr.cpp b/src/server/game/Conditions/ConditionMgr.cpp index ddcf21c197a..8c557ff2907 100644 --- a/src/server/game/Conditions/ConditionMgr.cpp +++ b/src/server/game/Conditions/ConditionMgr.cpp @@ -499,7 +499,7 @@ bool Condition::Meets(ConditionSourceInfo& sourceInfo) const case CONDITION_WINTERGRASP_HORDE: { condMeets = false; - if (object->ToPlayer()) + if (object->GetTypeId() == TYPEID_PLAYER) if (Battlefield* wintergrasp = sBattlefieldMgr->GetBattlefieldByBattleId(BATTLEFIELD_BATTLEID_WG)) if (wintergrasp->IsEnabled()) if (wintergrasp->GetDefenderTeam() == TEAM_HORDE) -- cgit v1.2.3