Fix seal unleash damage for Seal of Wisdom / Light / Justice / Vengeance

--HG--
branch : trunk
This commit is contained in:
Shocker
2010-08-25 06:17:12 +03:00
parent 9013353a4b
commit 020211bb31
+14 -12
View File
@@ -733,19 +733,21 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
{ {
damage += int32(m_caster->GetShieldBlockValue() * 1.3f); damage += int32(m_caster->GetShieldBlockValue() * 1.3f);
} }
// Judgement of Righteousness // Judgements
else if (m_spellInfo->Id == 20187) else switch (m_spellInfo->Id)
{ {
float ap = m_caster->GetTotalAttackPowerValue(BASE_ATTACK); case 20187:
float sp = (float)m_caster->SpellBaseDamageBonus(GetSpellSchoolMask(m_spellInfo)); case 54158:
damage += int32(0.2f*ap + 0.32f*sp); case 31804:
} float attackPower = m_caster->GetTotalAttackPowerValue(BASE_ATTACK);
// Judgement of Wisdom, Light, Justice float spellPower = (float)(m_caster->SpellBaseDamageBonus(GetSpellSchoolMask(m_spellInfo)));
else if (m_spellInfo->Id == 54158) if (m_spellInfo->Id == 20187) // Judgement of Righteousness
{ damage += int32(0.2f * attackPower + 0.32f * spellPower);
float ap = m_caster->GetTotalAttackPowerValue(BASE_ATTACK); if (m_spellInfo->Id == 54158) // Judgement of Wisdom, Light, Justice
float sp = (float)m_caster->SpellBaseDamageBonus(GetSpellSchoolMask(m_spellInfo)); damage += int32(0.16f * attackPower + 0.25f * spellPower);
damage += int32(0.14f*ap + 0.22f*sp); if (m_spellInfo->Id == 31804) // Judgement of Vengeance
damage += int32(0.14f * attackPower + 0.22f * spellPower);
break;
} }
break; break;
} }