aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvincent-michael <vincent_michael@gmx.de>2017-04-29 02:31:26 +0200
committervincent-michael <vincent_michael@gmx.de>2017-04-29 02:31:26 +0200
commit409cabf0e6903e2032da9a786475b4e3ce1937ef (patch)
tree74c79628dafa4189fde27eec1cd64ae68c15f224
parente70e03890dc7fe9cc69a9c938f95bf3e5088dfc6 (diff)
Scripts: Fixed build
-rw-r--r--src/server/scripts/EasternKingdoms/zone_dun_morogh_area_coldridge_valley.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/EasternKingdoms/zone_dun_morogh_area_coldridge_valley.cpp b/src/server/scripts/EasternKingdoms/zone_dun_morogh_area_coldridge_valley.cpp
index 323cc3546da..ee816c4c5a8 100644
--- a/src/server/scripts/EasternKingdoms/zone_dun_morogh_area_coldridge_valley.cpp
+++ b/src/server/scripts/EasternKingdoms/zone_dun_morogh_area_coldridge_valley.cpp
@@ -389,7 +389,7 @@ public:
void HandleForceCast(SpellEffIndex effIndex)
{
PreventHitDefaultEffect(effIndex);
- GetHitUnit()->CastSpell(GetHitUnit(), GetSpellInfo()->Effects[effIndex].TriggerSpell, true);
+ GetHitUnit()->CastSpell(GetHitUnit(), GetSpellInfo()->GetEffect(effIndex)->TriggerSpell, true);
}
void Register() override
@@ -420,7 +420,7 @@ public:
void HandleForceCast(SpellEffIndex effIndex)
{
PreventHitDefaultEffect(effIndex);
- GetHitUnit()->CastSpell(GetHitUnit(), GetSpellInfo()->Effects[effIndex].TriggerSpell, true);
+ GetHitUnit()->CastSpell(GetHitUnit(), GetSpellInfo()->GetEffect(effIndex)->TriggerSpell, true);
}
void Register() override