aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <none@none>2010-09-22 19:17:24 +0200
committerShauren <none@none>2010-09-22 19:17:24 +0200
commit8a9f9311846c26c9240f6defc76969ce83da55e7 (patch)
tree40935e5dc10a6e4d8763439b696c8eafd5272e51 /src
parenteae0e5c822d979694f5d686269391c4643bc9fcf (diff)
Scripts/Icecrown Citadel: Fixed coldflame damage
Closes issue #3569. Closes issue #3943. --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Northrend/IcecrownCitadel/boss_lord_marrowgar.cpp18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_lord_marrowgar.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_lord_marrowgar.cpp
index d9e90da9b40..6503dfb5635 100644
--- a/src/server/scripts/Northrend/IcecrownCitadel/boss_lord_marrowgar.cpp
+++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_lord_marrowgar.cpp
@@ -83,9 +83,10 @@ class boss_lord_marrowgar : public CreatureScript
boss_lord_marrowgarAI(Creature *pCreature) : BossAI(pCreature, DATA_LORD_MARROWGAR)
{
ASSERT(instance);
+ bIntroDone = false;
uiBoneStormDuration = RAID_MODE(20000,30000,20000,30000);
fBaseSpeed = pCreature->GetSpeedRate(MOVE_RUN);
- bIntroDone = false;
+ bBoneSlice = false;
coldflameLastPos.Relocate(pCreature);
}
@@ -159,7 +160,7 @@ class boss_lord_marrowgar : public CreatureScript
case EVENT_COLDFLAME:
coldflameLastPos.Relocate(me);
if (!me->HasAura(SPELL_BONE_STORM))
- DoCast(me, SPELL_COLDFLAME_NORMAL);
+ me->CastCustomSpell(SPELL_COLDFLAME_NORMAL, SPELLVALUE_MAX_TARGETS, 1, me);
else
DoCast(me, SPELL_COLDFLAME_BONE_STORM);
events.ScheduleEvent(EVENT_COLDFLAME, urand(10000, 15000));
@@ -413,19 +414,8 @@ class spell_marrowgar_coldflame : public SpellScriptLoader
if (GetSpellInfo()->Id == 72705)
count = 4;
- SpellCastTargets targets;
- targets.setUnitTarget(caster);
- targets.setDst(*caster);
-
- Spell* spell = NULL;
- SpellEntry const* spellInfo = NULL;
-
for (uint8 i = 0; i < count; ++i)
- {
- spellInfo = sSpellStore.LookupEntry(GetEffectValue()+i);
- spell = new Spell(caster, spellInfo, true);
- spell->prepare(&targets);
- }
+ caster->CastSpell(caster, GetEffectValue()+i, true);
}
void Register()