diff options
| author | Rat <none@none> | 2010-04-10 10:20:01 +0200 |
|---|---|---|
| committer | Rat <none@none> | 2010-04-10 10:20:01 +0200 |
| commit | 4a8bf5900dbd3fa9b7d9d71989d46dad8112fd7f (patch) | |
| tree | 5bc2a92e77da8a3c1a8d51f35a098cadcc3a3b25 /src/scripts/northrend/ulduar | |
| parent | 8bb3b394957f8e3edeb00f68812a997e59bd56d3 (diff) | |
*modified spelldifficulty handler to work with all spell casts for creatures that are in instances thanks to Shauren for help
*modified most of the scripts to use normal_mode spell for casting (code was autogenerated, post errors if any)
*added sql for all modded spells (autogenerated..)
--HG--
branch : trunk
Diffstat (limited to 'src/scripts/northrend/ulduar')
7 files changed, 18 insertions, 18 deletions
diff --git a/src/scripts/northrend/ulduar/halls_of_lightning/boss_bjarngrim.cpp b/src/scripts/northrend/ulduar/halls_of_lightning/boss_bjarngrim.cpp index 55a2ca3009a..ef3e4af3865 100644 --- a/src/scripts/northrend/ulduar/halls_of_lightning/boss_bjarngrim.cpp +++ b/src/scripts/northrend/ulduar/halls_of_lightning/boss_bjarngrim.cpp @@ -394,7 +394,7 @@ struct mob_stormforged_lieutenantAI : public ScriptedAI if (Creature* pBjarngrim = m_pInstance->instance->GetCreature(m_pInstance->GetData64(DATA_BJARNGRIM))) { if (pBjarngrim->isAlive()) - DoCast(pBjarngrim, DUNGEON_MODE(SPELL_RENEW_STEEL_N, SPELL_RENEW_STEEL_H)); + DoCast(pBjarngrim, SPELL_RENEW_STEEL_N); } } m_uiRenewSteel_Timer = 10000 + rand()%4000; diff --git a/src/scripts/northrend/ulduar/halls_of_lightning/boss_ionar.cpp b/src/scripts/northrend/ulduar/halls_of_lightning/boss_ionar.cpp index a534dbf0340..d2492abad09 100644 --- a/src/scripts/northrend/ulduar/halls_of_lightning/boss_ionar.cpp +++ b/src/scripts/northrend/ulduar/halls_of_lightning/boss_ionar.cpp @@ -231,7 +231,7 @@ struct boss_ionarAI : public ScriptedAI if (uiStaticOverloadTimer <= uiDiff) { if (Unit* pTarget = SelectUnit(SELECT_TARGET_RANDOM, 0)) - DoCast(pTarget, DUNGEON_MODE(SPELL_STATIC_OVERLOAD, H_SPELL_STATIC_OVERLOAD)); + DoCast(pTarget, SPELL_STATIC_OVERLOAD); uiStaticOverloadTimer = urand(5*IN_MILISECONDS, 6*IN_MILISECONDS); } @@ -240,7 +240,7 @@ struct boss_ionarAI : public ScriptedAI if (uiBallLightningTimer <= uiDiff) { - DoCast(m_creature->getVictim(), DUNGEON_MODE(SPELL_BALL_LIGHTNING, H_SPELL_BALL_LIGHTNING)); + DoCast(m_creature->getVictim(), SPELL_BALL_LIGHTNING); uiBallLightningTimer = urand(10*IN_MILISECONDS, 11*IN_MILISECONDS); } else diff --git a/src/scripts/northrend/ulduar/halls_of_lightning/boss_loken.cpp b/src/scripts/northrend/ulduar/halls_of_lightning/boss_loken.cpp index 3b5a3ecebd5..ed795076b61 100644 --- a/src/scripts/northrend/ulduar/halls_of_lightning/boss_loken.cpp +++ b/src/scripts/northrend/ulduar/halls_of_lightning/boss_loken.cpp @@ -175,7 +175,7 @@ struct boss_lokenAI : public ScriptedAI //breaks at movement, can we assume when it's time, this spell is casted and also must stop movement? DoCast(m_creature, SPELL_PULSING_SHOCKWAVE_AURA, true); - DoCast(m_creature, DUNGEON_MODE(SPELL_PULSING_SHOCKWAVE_N, SPELL_PULSING_SHOCKWAVE_H)); // need core support + DoCast(m_creature, SPELL_PULSING_SHOCKWAVE_N); // need core support m_bIsAura = true; m_uiResumePulsingShockwave_Timer = 0; } @@ -197,7 +197,7 @@ struct boss_lokenAI : public ScriptedAI { DoScriptText(RAND(SAY_NOVA_1,SAY_NOVA_2,SAY_NOVA_3), m_creature); DoScriptText(EMOTE_NOVA, m_creature); - DoCast(m_creature, DUNGEON_MODE(SPELL_LIGHTNING_NOVA_N, SPELL_LIGHTNING_NOVA_H)); + DoCast(m_creature, SPELL_LIGHTNING_NOVA_N); m_bIsAura = false; m_uiResumePulsingShockwave_Timer = DUNGEON_MODE(5000, 4000); // Pause Pulsing Shockwave aura diff --git a/src/scripts/northrend/ulduar/halls_of_lightning/boss_volkhan.cpp b/src/scripts/northrend/ulduar/halls_of_lightning/boss_volkhan.cpp index 7ca5ca16e71..2546d323a7f 100644 --- a/src/scripts/northrend/ulduar/halls_of_lightning/boss_volkhan.cpp +++ b/src/scripts/northrend/ulduar/halls_of_lightning/boss_volkhan.cpp @@ -255,7 +255,7 @@ struct boss_volkhanAI : public ScriptedAI DoScriptText(RAND(SAY_STOMP_1,SAY_STOMP_2), m_creature); - DoCast(m_creature, DUNGEON_MODE(SPELL_SHATTERING_STOMP_N, SPELL_SHATTERING_STOMP_H)); + DoCast(m_creature, SPELL_SHATTERING_STOMP_N); DoScriptText(EMOTE_SHATTER, m_creature); @@ -441,7 +441,7 @@ struct mob_molten_golemAI : public ScriptedAI if (m_uiImmolation_Timer <= uiDiff) { - DoCast(m_creature->getVictim(), DUNGEON_MODE(SPELL_IMMOLATION_STRIKE_N, SPELL_IMMOLATION_STRIKE_H)); + DoCast(m_creature->getVictim(), SPELL_IMMOLATION_STRIKE_N); m_uiImmolation_Timer = 5000; } else diff --git a/src/scripts/northrend/ulduar/halls_of_stone/boss_krystallus.cpp b/src/scripts/northrend/ulduar/halls_of_stone/boss_krystallus.cpp index 41074430317..a55c3a6038f 100644 --- a/src/scripts/northrend/ulduar/halls_of_stone/boss_krystallus.cpp +++ b/src/scripts/northrend/ulduar/halls_of_stone/boss_krystallus.cpp @@ -79,7 +79,7 @@ struct boss_krystallusAI : public ScriptedAI if (uiBoulderTossTimer <= diff) { if (Unit* pTarget = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true)) - DoCast(pTarget, DUNGEON_MODE(SPELL_BOULDER_TOSS, H_SPELL_BOULDER_TOSS)); + DoCast(pTarget, SPELL_BOULDER_TOSS); uiBoulderTossTimer = 9000 + rand()%6000; } else uiBoulderTossTimer -= diff; @@ -92,7 +92,7 @@ struct boss_krystallusAI : public ScriptedAI if (uiStompTimer <= diff) { - DoCast(m_creature, DUNGEON_MODE(SPELL_STOMP, H_SPELL_STOMP)); + DoCast(m_creature, SPELL_STOMP); uiStompTimer = 20000 + rand()%9000; } else uiStompTimer -= diff; @@ -108,7 +108,7 @@ struct boss_krystallusAI : public ScriptedAI { if (uiShatterTimer <= diff) { - DoCast(m_creature, DUNGEON_MODE(SPELL_SHATTER, H_SPELL_SHATTER)); + DoCast(m_creature, SPELL_SHATTER); bIsSlam = false; } else uiShatterTimer -= diff; } diff --git a/src/scripts/northrend/ulduar/halls_of_stone/boss_maiden_of_grief.cpp b/src/scripts/northrend/ulduar/halls_of_stone/boss_maiden_of_grief.cpp index 4b098b5f288..2232059d576 100644 --- a/src/scripts/northrend/ulduar/halls_of_stone/boss_maiden_of_grief.cpp +++ b/src/scripts/northrend/ulduar/halls_of_stone/boss_maiden_of_grief.cpp @@ -109,7 +109,7 @@ struct boss_maiden_of_griefAI : public ScriptedAI if (StormOfGriefTimer <= diff) { - DoCast(m_creature->getVictim(), DUNGEON_MODE(SPELL_STORM_OF_GRIEF_N, SPELL_STORM_OF_GRIEF_H), true); + DoCast(m_creature->getVictim(), SPELL_STORM_OF_GRIEF_N, true); StormOfGriefTimer = 15000 + rand()%5000; } else StormOfGriefTimer -= diff; @@ -117,7 +117,7 @@ struct boss_maiden_of_griefAI : public ScriptedAI { DoResetThreat(); DoScriptText(SAY_STUN, m_creature); - DoCast(m_creature, DUNGEON_MODE(SPELL_SHOCK_OF_SORROW_N, SPELL_SHOCK_OF_SORROW_H)); + DoCast(m_creature, SPELL_SHOCK_OF_SORROW_N); ShockOfSorrowTimer = 20000 + rand()%10000; } else ShockOfSorrowTimer -= diff; @@ -126,9 +126,9 @@ struct boss_maiden_of_griefAI : public ScriptedAI Unit *pTarget = SelectUnit(SELECT_TARGET_RANDOM, 1); if (pTarget) - DoCast(pTarget, DUNGEON_MODE(SPELL_PILLAR_OF_WOE_N, SPELL_PILLAR_OF_WOE_H)); + DoCast(pTarget, SPELL_PILLAR_OF_WOE_N); else - DoCast(m_creature->getVictim(), DUNGEON_MODE(SPELL_PILLAR_OF_WOE_N, SPELL_PILLAR_OF_WOE_H)); + DoCast(m_creature->getVictim(), SPELL_PILLAR_OF_WOE_N); PillarOfWoeTimer = 5000 + rand()%20000; } else PillarOfWoeTimer -= diff; diff --git a/src/scripts/northrend/ulduar/halls_of_stone/boss_sjonnir.cpp b/src/scripts/northrend/ulduar/halls_of_stone/boss_sjonnir.cpp index f45ddf1d007..fc711d97ae5 100644 --- a/src/scripts/northrend/ulduar/halls_of_stone/boss_sjonnir.cpp +++ b/src/scripts/northrend/ulduar/halls_of_stone/boss_sjonnir.cpp @@ -134,19 +134,19 @@ struct boss_sjonnirAI : public ScriptedAI if (uiChainLightningTimer <= diff) { if (Unit* pTarget = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true)) - DoCast(pTarget, DUNGEON_MODE(SPELL_CHAIN_LIGHTING, H_SPELL_CHAIN_LIGHTING)); + DoCast(pTarget, SPELL_CHAIN_LIGHTING); uiChainLightningTimer = 10000 + rand()%5000; } else uiChainLightningTimer -= diff; if (uiLightningShieldTimer <= diff) { - DoCast(m_creature, DUNGEON_MODE(SPELL_LIGHTING_SHIELD, H_SPELL_LIGHTING_SHIELD)); + DoCast(m_creature, SPELL_LIGHTING_SHIELD); uiLightningShieldTimer -= diff; } if (uiStaticChargeTimer <= diff) { - DoCast(m_creature->getVictim(), DUNGEON_MODE(SPELL_STATIC_CHARGE, H_SPELL_STATIC_CHARGE)); + DoCast(m_creature->getVictim(), SPELL_STATIC_CHARGE); uiStaticChargeTimer = 20000 + rand()%5000; } uiStaticChargeTimer -= diff; @@ -154,7 +154,7 @@ struct boss_sjonnirAI : public ScriptedAI { if (m_creature->IsNonMeleeSpellCasted(false)) m_creature->InterruptNonMeleeSpells(false); - DoCast(m_creature, DUNGEON_MODE(SPELL_LIGHTING_RING, H_SPELL_LIGHTING_RING)); + DoCast(m_creature, SPELL_LIGHTING_RING); uiLightningRingTimer = 30000 + rand()%5000; } else uiLightningRingTimer -= diff; |
