diff options
author | QAston <none@none> | 2009-06-12 13:01:42 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-06-12 13:01:42 +0200 |
commit | bc7a381b6236f98369f23cf012565b3bb590618d (patch) | |
tree | 6bb9a536f5b46966c06607a65739ffd5251b8dd1 /src/game/SpellEffects.cpp | |
parent | f7c50a6f01042e401e7dee664d140857d42b7fa5 (diff) |
*Fix shadow bite bonus per dot on target.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r-- | src/game/SpellEffects.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 9b176683e7c..31d548c5254 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -474,7 +474,7 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx) damage += int32(damage*0.25f); } // Conflagrate - consumes immolate - if (m_spellInfo->TargetAuraState == AURA_STATE_IMMOLATE) + else if (m_spellInfo->TargetAuraState == AURA_STATE_IMMOLATE) { // Glyph of Conflagrate if (m_caster->HasAura(56235)) @@ -491,6 +491,15 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx) } } } + // Shadow Bite + else if (m_spellInfo->SpellFamilyFlags[1] & 0x400000) + { + if (m_caster->GetTypeId() == TYPEID_UNIT && ((Creature *)m_caster)->isPet()) + { + // Get DoTs on target by owner (5% increase by dot) + damage += 5 * unitTarget->GetDoTsByCaster(m_caster->GetOwnerGUID()) / 100; + } + } break; } case SPELLFAMILY_PRIEST: |