diff options
author | p0wer <none@none> | 2009-12-27 12:28:46 -0600 |
---|---|---|
committer | p0wer <none@none> | 2009-12-27 12:28:46 -0600 |
commit | 2ba1a48dd472fddf4f75359c23c0c26a9c5e198e (patch) | |
tree | ae809dd745233a22d40b0dbcb14c218f36cb314a | |
parent | d2beecd80c05443313e92d2fb307c6034567a122 (diff) |
Replace some more id's with new variable names. Fix some whitespace formating.
--HG--
branch : trunk
-rw-r--r-- | src/game/SpellEffects.cpp | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index b579cb198af..8b8b5749481 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -866,7 +866,7 @@ void Spell::EffectDummy(uint32 i) m_caster->CastCustomSpell(unitTarget, 12721, &deepWoundsDotBasePoints0, NULL, NULL, true, NULL); return; } - case 13120: // net-o-matic + case SPELL_NET_O_MATIC_13120: // net-o-matic { if (!unitTarget) return; @@ -876,16 +876,16 @@ void Spell::EffectDummy(uint32 i) uint32 roll = urand(0, 99); if(roll < 2) // 2% for 30 sec self root (off-like chance unknown) - spell_id = 16566; + spell_id = SPELL_NET_O_MATIC_16566; else if(roll < 4) // 2% for 20 sec root, charge to target (off-like chance unknown) - spell_id = 13119; + spell_id = SPELL_NET_O_MATIC_13119; else // normal root - spell_id = 13099; + spell_id = SPELL_NET_O_MATIC_13099; m_caster->CastSpell(unitTarget,spell_id,true,NULL); return; } - case 67019: // Flask of the North + case SPELL_FLASK_OF_THE_NORTH_67019: // Flask of the North { if (m_caster->GetTypeId() != TYPEID_PLAYER) return; @@ -893,43 +893,43 @@ void Spell::EffectDummy(uint32 i) uint32 spell_id; switch(urand(1, 3)) { - case 1: spell_id = 67016; break; - case 2: spell_id = 67017; break; - default:spell_id = 67018; break; + case 1: spell_id = SPELL_FLASK_OF_THE_NORTH_67016; break; + case 2: spell_id = SPELL_FLASK_OF_THE_NORTH_67017; break; + default: spell_id = SPELL_FLASK_OF_THE_NORTH_67018; break; } m_caster->CastSpell(m_caster, spell_id, true, NULL); return; } - case 13280: // Gnomish Death Ray - { - if (!unitTarget) - return; - - if (urand(0, 99) < 15) - m_caster->CastSpell(m_caster, 13493, true, NULL); // failure - else - m_caster->CastSpell(unitTarget, 13279, true, NULL); + case SPELL_GNOMISH_DEATH_RAY_13280: // Gnomish Death Ray + { + if (!unitTarget) + return; - return; - } - case 13567: // Dummy Trigger - { - // can be used for different aura triggering, so select by aura - if (!m_triggeredByAuraSpell || !unitTarget) - return; + if (urand(0, 99) < 15) + m_caster->CastSpell(m_caster, SPELL_GNOMISH_DEATH_RAY_13493, true, NULL); // failure + else + m_caster->CastSpell(unitTarget, SPELL_GNOMISH_DEATH_RAY_13279, true, NULL); - switch (m_triggeredByAuraSpell->Id) - { - case 26467: // Persistent Shield - m_caster->CastCustomSpell(unitTarget, 26470, &damage, NULL, NULL, true); - break; - default: - sLog.outError("EffectDummy: Non-handled case for spell 13567 for triggered aura %u",m_triggeredByAuraSpell->Id); - break; - } - return; - } + return; + } + case SPELL_DUMMY_TRIGGER_13567: // Dummy Trigger + { + // can be used for different aura triggering, so select by aura + if (!m_triggeredByAuraSpell || !unitTarget) + return; + + switch (m_triggeredByAuraSpell->Id) + { + case SPELL_PERSISTENT_SHIELD_26467: // Persistent Shield + m_caster->CastCustomSpell(unitTarget, 26470, &damage, NULL, NULL, true); + break; + default: + sLog.outError("EffectDummy: Non-handled case for spell 13567 for triggered aura %u",m_triggeredByAuraSpell->Id); + break; + } + return; + } case 15998: // Capture Worg Pup case 29435: // Capture Female Kaliri Hatchling { |