aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSnapperRy <snapperryen@gmail.com>2016-10-04 15:51:44 +0200
committerSnapperRy <snapperryen@gmail.com>2016-10-04 15:51:44 +0200
commitdf36e4b95d96732c038ab6a30af2a398e93d4b08 (patch)
tree13869364ac14de72091dc3ab7396608e3bb5962a /src
parent83771597c1f1ed8089270e83091f7fb01df186d1 (diff)
DB/Conditions: quests Southern Sabotage and Toppling the Towers are only available if the respective faction is defending Wintergrasp.
Also codestyle stealthfix.
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Conditions/ConditionMgr.cpp2
1 files changed, 1 insertions, 1 deletions
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)