diff options
| author | azazel <none@none> | 2010-09-04 02:33:57 +0600 |
|---|---|---|
| committer | azazel <none@none> | 2010-09-04 02:33:57 +0600 |
| commit | 7884fd927a3810a7429021f8badf528276b55ef9 (patch) | |
| tree | df6e20bfca332495b4c1f91a808cbc870c619400 /src/server/game/Spells/SpellEffects.cpp | |
| parent | d4e2fdad780f39e1150f13e1d7735e1f2a2c1f05 (diff) | |
Spell Scripts:
* moved some generic spell dummy effects to scripts
* implemented two spell scripts for quests: 8913 Sacred Cleansing (Quest 55), 44936 Quest - Fel Siphon Dummy (Quest 11515). Closes issue #3040
* did some cleanup in spell scripts and added more comments
--HG--
branch : trunk
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
| -rw-r--r-- | src/server/game/Spells/SpellEffects.cpp | 115 |
1 files changed, 0 insertions, 115 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index fc847e77874..3d9c9e03ffd 100644 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -842,46 +842,6 @@ void Spell::EffectDummy(SpellEffIndex effIndex) } return; } - case 14537: // Six Demon Bag - { - if( !unitTarget || !unitTarget->isAlive()) return; - - uint32 ClearSpellId[6] = - { - 15662, // Fireball - 11538, // Frostball - 21179, // Chain Lightning - 14621, // Polymorph - 25189, // Enveloping Winds - 14642 // Summon Felhund minion - }; - - uint32 effect = 0; - uint32 rand = urand(0, 100); - - if (rand < 25) // Fireball (25% chance) - effect = ClearSpellId[0]; - else if (rand < 50) // Frostball (25% chance) - effect = ClearSpellId[1]; - else if (rand < 70) // Chain Lighting (25% chance) - effect = ClearSpellId[2]; - else if (rand < 80) // Polymorph (10% chance) - { - effect = ClearSpellId[3]; - if (urand(0, 100) <= 30) // 30% chance to self-cast - unitTarget = m_caster; - } - else if (rand < 95) // Enveloping Winds (15% chance) - effect = ClearSpellId[4]; - else // Summon Felhund minion (5% chance) - { - effect = ClearSpellId[5]; - unitTarget = m_caster; - } - - m_caster->CastSpell(unitTarget, effect, true); - return; - } case 17251: // Spirit Healer Res { if (!unitTarget || !m_originalCaster) @@ -895,18 +855,6 @@ void Spell::EffectDummy(SpellEffIndex effIndex) } return; } - case 17271: // Test Fetid Skull - { - if (!itemTarget && m_caster->GetTypeId() != TYPEID_PLAYER) - return; - - uint32 spell_id = roll_chance_i(50) - ? 17269 // Create Resonating Skull - : 17270; // Create Bone Dust - - m_caster->CastSpell(m_caster, spell_id, true, NULL); - return; - } case 20577: // Cannibalize if (unitTarget) m_caster->CastSpell(m_caster, 20578, false, NULL); @@ -925,22 +873,6 @@ void Spell::EffectDummy(SpellEffIndex effIndex) return; } - case 23074: // Arcanite Dragonling - if (!m_CastItem) return; - m_caster->CastSpell(m_caster, 19804, true, m_CastItem); - return; - case 23075: // Mithril Mechanical Dragonling - if (!m_CastItem) return; - m_caster->CastSpell(m_caster, 12749, true, m_CastItem); - return; - case 23076: // Mechanical Dragonling - if (!m_CastItem) return; - m_caster->CastSpell(m_caster, 4073, true, m_CastItem); - return; - case 23133: // Gnomish Battle Chicken - if (!m_CastItem) return; - m_caster->CastSpell(m_caster, 13166, true, m_CastItem); - return; case 23448: // Transporter Arrival - Ultrasafe Transporter: Gadgetzan - backfires { int32 r = irand(0, 119); @@ -1031,20 +963,6 @@ void Spell::EffectDummy(SpellEffIndex effIndex) else // Poultryized! - backfire 20% m_caster->CastSpell(unitTarget, 30504, true, m_CastItem); return; - case 34665: //Administer Antidote - { - if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT - || unitTarget->GetEntry() != 16880 || unitTarget->ToCreature()->isPet()) - return; - - unitTarget->ToCreature()->UpdateEntry(16992); - m_caster->ToPlayer()->RewardPlayerAndGroupAtEvent(16992, unitTarget); - - if (unitTarget->IsAIEnabled) - unitTarget->ToCreature()->AI()->AttackStart(m_caster); - - return; - } case 35745: // Socrethar's Stone { uint32 spell_id; @@ -1067,39 +985,6 @@ void Spell::EffectDummy(SpellEffIndex effIndex) m_caster->CastCustomSpell(unitTarget, 37675, &basepoints0, NULL, NULL, true); return; } - case 40802: // Mingo's Fortune Generator (Mingo's Fortune Giblets) - { - // selecting one from Bloodstained Fortune item - uint32 newitemid; - switch(urand(1, 20)) - { - case 1: newitemid = 32688; break; - case 2: newitemid = 32689; break; - case 3: newitemid = 32690; break; - case 4: newitemid = 32691; break; - case 5: newitemid = 32692; break; - case 6: newitemid = 32693; break; - case 7: newitemid = 32700; break; - case 8: newitemid = 32701; break; - case 9: newitemid = 32702; break; - case 10: newitemid = 32703; break; - case 11: newitemid = 32704; break; - case 12: newitemid = 32705; break; - case 13: newitemid = 32706; break; - case 14: newitemid = 32707; break; - case 15: newitemid = 32708; break; - case 16: newitemid = 32709; break; - case 17: newitemid = 32710; break; - case 18: newitemid = 32711; break; - case 19: newitemid = 32712; break; - case 20: newitemid = 32713; break; - default: - return; - } - - DoCreateItem(effIndex, newitemid); - return; - } // Wrath of the Astromancer case 42784: { |
