Jump to content

[Fix][9041] Hammer Of Wrath.


Guest goldberg002
 Share

Recommended Posts

* What bug does the patch fix? What features does the patch add?

This is my first patch :lol: , this patch will fix damage of this spell Hammer of Wrath.

* For which repository revision was the patch created?

8582

* Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

nope.

* Who has been writing this patch? Please include either forum user names or email addresses.

Me (Goldberg002)

Tested, and works fine.

Index: SpellEffects.cpp at void Spell::EffectSchoolDMG(uint32 effect_idx)

// Avenger's Shield ($m1+0.07*$SPH+0.07*$AP) - ranged sdb for future
else if (m_spellInfo->SpellFamilyFlags & UI64LIT(0x0000000000004000))
{
   float ap = m_caster->GetTotalAttackPowerValue(BASE_ATTACK);
   int32 holy = m_caster->SpellBaseDamageBonus(GetSpellSchoolMask(m_spellInfo)) +
                           m_caster->SpellBaseDamageBonusForVictim(GetSpellSchoolMask(m_spellInfo), unitTarget);
   damage += int32(ap * 0.07f) + int32(holy * 7 / 100);
}
-// Hammer of Wrath ($m1+0.15*$SPH+0.15*$AP) - ranged type sdb future fix
-else if (m_spellInfo->SpellFamilyFlags & UI64LIT(0x0000008000000000))
-{
-    float ap = m_caster->GetTotalAttackPowerValue(BASE_ATTACK);
-       int32 holy = m_caster->SpellBaseDamageBonus(GetSpellSchoolMask(m_spellInfo)) +
-                           m_caster->SpellBaseDamageBonusForVictim(GetSpellSchoolMask(m_spellInfo), unitTarget);
-    damage += int32(ap * 0.15f) + int32(holy * 15 / 100);
-}

Thank you. :cool:

If this patch is not good, delete this Thread.

Link to comment
Share on other sites

  • 2 months later...
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use