aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
authortibbi <tibbi@centrum.sk>2012-10-24 14:51:42 +0100
committertibbi <tibbi@centrum.sk>2012-10-24 14:51:42 +0100
commitf8ce00acca499e6f15fc45a1042eb5cd289c1c9c (patch)
treee9241d4d39157755c2b35d67e26c0a6389b61dff /src/server/scripts
parentca85c3b4759c111fa8dd277a037aab7a0968dbaf (diff)
correcting SotA teleports + cleanup
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/Northrend/wintergrasp.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/scripts/Northrend/wintergrasp.cpp b/src/server/scripts/Northrend/wintergrasp.cpp
index 2aed813550d..d4a3f83ab70 100644
--- a/src/server/scripts/Northrend/wintergrasp.cpp
+++ b/src/server/scripts/Northrend/wintergrasp.cpp
@@ -559,7 +559,8 @@ public:
{
if (Battlefield* wg = sBattlefieldMgr->GetBattlefieldByBattleId(BATTLEFIELD_BATTLEID_WG))
if (Player* target = GetExplTargetUnit()->ToPlayer())
- if (target->GetTeamId() != wg->GetDefenderTeam() || target->HasAura(SPELL_WINTERGRASP_TELEPORT_TRIGGER))
+ // check if we are in Wintergrasp at all, SotA uses same teleport spells
+ if ((target->GetZoneId() == 4197) && target->GetTeamId() != wg->GetDefenderTeam() || target->HasAura(SPELL_WINTERGRASP_TELEPORT_TRIGGER))
return SPELL_FAILED_BAD_TARGETS;
return SPELL_CAST_OK;
}