*Judgement (Seal of Light, Seal of Wisdom, Seal of Justice), and Judgement of Righteousness, proper spell damage bonus, by Destalker.

--HG--
branch : trunk
This commit is contained in:
maximius
2009-10-18 14:57:32 -07:00
parent 79ec292c61
commit 32e2c3e411
3 changed files with 23 additions and 2 deletions

View File

@@ -647,6 +647,20 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
{
damage += int32(m_caster->GetShieldBlockValue() * 1.3f);
}
// Judgement of Righteousness
else if (m_spellInfo->Id == 20187)
{
float ap = m_caster->GetTotalAttackPowerValue(BASE_ATTACK);
float sp = m_caster->SpellBaseDamageBonus(GetSpellSchoolMask(m_spellInfo));
damage += int32(0.25f*ap + 0.4f*sp);
}
// Judgement of Wisdom, Light, Justice
else if (m_spellInfo->SpellFamilyFlags[0]&0x00800000)
{
float ap = m_caster->GetTotalAttackPowerValue(BASE_ATTACK);
float sp = m_caster->SpellBaseDamageBonus(GetSpellSchoolMask(m_spellInfo));
damage += int32(0.16f*ap + 0.25f*sp);
}
break;
}
case SPELLFAMILY_DEATHKNIGHT: