diff options
author | QAston <none@none> | 2009-07-03 02:14:33 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-07-03 02:14:33 +0200 |
commit | 9d3c9af594d83369466a6b319e7676f787bbf64d (patch) | |
tree | 0915880ef567fe2d209c5a2db9e324d763309947 /src | |
parent | 9a6fa5cf3c536dbf05f5902ce4f9a4b5ac620ebe (diff) |
Add spell_proc_event entries for some spells.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 442ef4a6cca..2a1407e37ec 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -7285,38 +7285,8 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, AuraEffect* trig break; case SPELLFAMILY_WARLOCK: { - // Pyroclasm - if (auraSpellInfo->SpellIconID == 1137) - { - if(!pVictim || !pVictim->isAlive() || pVictim == this || procSpell == NULL) - return false; - // Calculate spell tick count for spells - uint32 tick; - - // Hellfire have 15 tick - if (procSpell->SpellFamilyFlags[0]&0x40) - tick = 15; - // Rain of Fire have 4 tick - else if (procSpell->SpellFamilyFlags[0]&0x20) - tick = 4; - else - tick = 1; - - // Calculate chance = baseChance / tick - float chance = 0; - switch (auraSpellInfo->Id) - { - case 18096: chance = 13.0f / tick; break; - case 18073: chance = 26.0f / tick; break; - } - // Roll chance - if (!roll_chance_f(chance)) - return false; - - trigger_spell_id = 18093; - } // Improved Drain Soul - else if (auraSpellInfo->SpellFamilyFlags[0] & 0x4000) + if (auraSpellInfo->SpellFamilyFlags[0] & 0x4000) { Unit::AuraEffectList const& mAddFlatModifier = GetAurasByType(SPELL_AURA_DUMMY); for(Unit::AuraEffectList::const_iterator i = mAddFlatModifier.begin(); i != mAddFlatModifier.end(); ++i) |