diff options
author | megamage <none@none> | 2009-07-16 10:16:53 +0800 |
---|---|---|
committer | megamage <none@none> | 2009-07-16 10:16:53 +0800 |
commit | 27bbca78a16eb6baae9e3eb9e7d864aad883453d (patch) | |
tree | 9beb0a146bc8916f36b47dc33a46aadb2581eef5 /src | |
parent | 96e75b4e2309105b5eba2f234416c6e1bd2cca37 (diff) |
[8171] Restore work double damage chance for spell 35290 and ranks. Author: VladimirMangos
It has been broken at client switch and detected by spell_check data.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellEffects.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 0e7668dc94b..965627e58eb 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -323,12 +323,6 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx) { case SPELLFAMILY_GENERIC: { - //Gore - if(m_spellInfo->SpellIconID == 2269 ) - { - damage += (rand()%2 ? damage : 0); - } - // Meteor like spells (divided damage to targets) if(m_customAttr & SPELL_ATTR_CU_SHARE_DAMAGE) { @@ -618,8 +612,13 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx) } case SPELLFAMILY_HUNTER: { + //Gore + if (m_spellInfo->SpellIconID == 1578) + { + damage+= rand()%2 ? damage : 0; + } // Mongoose Bite - if((m_spellInfo->SpellFamilyFlags[0] & 0x2) && m_spellInfo->SpellVisual[0]==342) + else if((m_spellInfo->SpellFamilyFlags[0] & 0x2) && m_spellInfo->SpellVisual[0]==342) { damage += int32(m_caster->GetTotalAttackPowerValue(BASE_ATTACK)*0.2f); } |