aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Northrend
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/scripts/Northrend')
-rw-r--r--src/server/scripts/Northrend/Ulduar/Ulduar/boss_yogg_saron.cpp2
-rw-r--r--src/server/scripts/Northrend/zone_icecrown.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_yogg_saron.cpp b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_yogg_saron.cpp
index 0d39fbf5505..64a315eb465 100644
--- a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_yogg_saron.cpp
+++ b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_yogg_saron.cpp
@@ -3078,10 +3078,12 @@ class spell_yogg_saron_in_the_maws_of_the_old_god : public SpellScriptLoader
if (InstanceScript* instance = GetCaster()->GetInstanceScript())
if (Creature* yogg = ObjectAccessor::GetCreature(*GetCaster(), instance->GetData64(BOSS_YOGG_SARON)))
if (yogg->FindCurrentSpellBySpellId(SPELL_DEAFENING_ROAR))
+ {
if (GetCaster()->GetDistance(yogg) > 20.0f)
return SPELL_FAILED_OUT_OF_RANGE;
else
return SPELL_CAST_OK;
+ }
return SPELL_FAILED_CANT_DO_THAT_RIGHT_NOW;
}
diff --git a/src/server/scripts/Northrend/zone_icecrown.cpp b/src/server/scripts/Northrend/zone_icecrown.cpp
index 70b500166c9..0447d70b502 100644
--- a/src/server/scripts/Northrend/zone_icecrown.cpp
+++ b/src/server/scripts/Northrend/zone_icecrown.cpp
@@ -921,7 +921,7 @@ class npc_frostbrood_skytalon : public CreatureScript
if (id == POINT_GRAB_DECOY)
if (TempSummon* summon = me->ToTempSummon())
if (Unit* summoner = summon->GetSummoner())
- DoCast(summoner, SPELL_GRAB);
+ DoCast(summoner, SPELL_GRAB);
}
void UpdateAI(uint32 diff)