Jump to content

[Fix][8945] Judgement of Light


Guest MrLama

Recommended Posts

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

It replaces old formula ${0.10*$AP+0.10*$SPH} ( patch 3.1.3 ) with a new one 2% of maximum health ( patch 3.2.x)

For which repository revision was the patch created?

Rev. 8918

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

---

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

Myself

diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index a43c520..69f1770 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -5892,14 +5951,7 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
                // Judgement of Light
                case 20185:
                {
-                    // Get judgement caster
-                    Unit *caster = triggeredByAura->GetCaster();
-                    if (!caster)
-                        return false;
-                    float ap   = caster->GetTotalAttackPowerValue(BASE_ATTACK);
-                    int32 holy = caster->SpellBaseDamageBonus(SPELL_SCHOOL_MASK_HOLY) +
-                                 caster->SpellBaseDamageBonusForVictim(SPELL_SCHOOL_MASK_HOLY, this);
-                    basepoints0 = int32(ap*0.10f + 0.10f*holy);
+                    basepoints0 = int32( pVictim->GetMaxHealth() * 2 / 100 );
                    pVictim->CastCustomSpell(pVictim, 20267, &basepoints0, NULL, NULL, true, NULL, triggeredByAura);
                    return true;
                }

Link to comment
Share on other sites

×
×
  • 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