*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
+4 -2
View File
@@ -1718,11 +1718,13 @@ INSERT INTO `spell_bonus_data` (`entry`, `direct_bonus`, `dot_bonus`, `ap_bonus`
(20467, 0.25, -1, 0.16, -1, 'Paladin - Judgement of Command'),
(53733, 0.22, -1, 0.14, -1, 'Paladin - Judgement of Corruption'),
(20267, 0.1, -1, 0.1, -1, 'Paladin - Judgement of Light Proc'),
(20187, 0.4, -1, 0.25, -1, 'Paladin - Judgement of Righteousness'),
-- (20187, 0.4, -1, 0.25, -1, 'Paladin - Judgement of Righteousness'),
(20187, 0, 0, 0, 0, 'Paladin - Judgement of Righteousness'),
(53726, 0.25, -1, 0.16, -1, 'Paladin - Judgement of the Martyr Enemy'),
(53725, 0.0833, -1, 0.0533, -1, 'Paladin - Judgement of the Martyr Self'),
(31804, 0.22, -1, 0.14, -1, 'Paladin - Judgement of Vengeance'),
(54158, 0.25, -1, 0.16, -1, 'Paladin - Jugdement (Seal of Light, Seal of Wisdom, Seal of Justice)'),
-- (54158, 0.25, -1, 0.16, -1, 'Paladin - Judgement (Seal of Light, Seal of Wisdom, Seal of Justice)'),
(54158, 0, 0, 0, 0, 'Paladin - Judgement (Seal of Light, Seal of Wisdom, Seal of Justice)')
(58597, 0.75, -1, -1, -1, 'Paladin - Sacred Shield'),
(53601, 0.75, -1, -1, -1, 'Paladin - Sacred Shield'),
(31893, 0, 0, 0, 0, 'Paladin - Seal of Blood Proc Enemy'),
+5
View File
@@ -0,0 +1,5 @@
DELETE FROM `spell_bonus_data` WHERE `entry` IN (20187,54158);
INSERT INTO `spell_bonus_data` (`entry`, `direct_bonus`, `dot_bonus`, `ap_bonus`, `ap_dot_bonus`, `comments`) VALUES
(20187, 0, 0, 0, 0, 'Paladin - Judgement of Righteousness'),
(54158, 0, 0, 0, 0, 'Paladin - Judgement (Seal of Light, Seal of Wisdom, Seal of Justice)');
+14
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: