Jump to content

[7434][patch/dev] Shield of Righteousness


Auntie Mangos

Recommended Posts

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

adds the block value of your shield to the damage dealt by Shield of Righteousness

* For which repository revision was the patch created?

7425+

* Who has been writing this patch?

im the only one to blame here :)

2009-03-09 14:59 diff -ul patch/src/game/SpellEffects.cpp mangos/src/game/SpellEffects.cpp Page 1


--- patch/src/game/SpellEffects.cpp    2009-03-09 13:05:41.000000000 -0200
+++ mangos/src/game/SpellEffects.cpp    2009-03-09 14:51:23.000000000 -0200
@@ -588,7 +588,11 @@
                    float averange = (m_caster->GetFloatValue(UNIT_FIELD_MINDAMAGE) + m_caster->GetFloatValue(UNIT_FIELD_MAXDAMAGE)) / 2;
                    int32 count = m_caster->CalculateSpellDamage(m_spellInfo, 2, m_spellInfo->EffectBasePoints[2], unitTarget);
                    damage += count * int32(averange * IN_MILISECONDS) / m_caster->GetAttackTime(BASE_ATTACK);
+                }
+                 //Shield of Righteousness
+                else if(m_spellInfo->SpellFamilyFlags&0x0010000000000000LL)
+                {
+                    damage+=int32(m_caster->GetShieldBlockValue());
                }
+               
                break;
            }
        }

best if used with the sql coefficients patch by cccyril to avoid overpower

my first patch. please be gentle :P

Link to comment
Share on other sites

  • 39 years later...
Guest
This topic is now closed to further replies.
×
×
  • 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