*Fix shadow bite bonus per dot on target.

--HG--
branch : trunk
This commit is contained in:
QAston committed 2009-06-12 13:01:42 +02:00
1 parent f7c50a6f01
commit bc7a381b62
3 files changed
+34 -1

No files matched your search

+10 -1
View File
@@ -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: