aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormaximius <none@none>2009-10-18 14:57:32 -0700
committermaximius <none@none>2009-10-18 14:57:32 -0700
commit32e2c3e41188d055a6614482ef345c36ff4e04e5 (patch)
tree7bd9fc924ff4feaedf639b670dedc48a31cdcf33 /src
parent79ec292c61be0cf3f18cf5d46d5d7eb649377fc6 (diff)
*Judgement (Seal of Light, Seal of Wisdom, Seal of Justice), and Judgement of Righteousness, proper spell damage bonus, by Destalker.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellEffects.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 38a55322ebd..dac6a13bef8 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -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: