Jump to content

[patch] Priest T9 Healing 4P Bonus


Guest dpedroia15

Recommended Posts

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

The patch adds the dummy effects for the spell from the Healing Priest T9 4P Set Bonus.

For which repository revision was the patch created?

10333

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

No

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

Me, dpedroia15

diff --git a/src/game/UnitAuraProcHandler.cpp b/src/game/UnitAuraProcHandler.cpp
index 8efae7c..5f079b5 100644
--- a/src/game/UnitAuraProcHandler.cpp
+++ b/src/game/UnitAuraProcHandler.cpp
@@ -1334,7 +1334,12 @@ SpellAuraProcResult Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura
                // Divine Aegis
                case 2820:
                {
-                    basepoints[0] = damage * triggerAmount/100;
+                    //Item - Priest T9 Healing 4P Bonus (Divine Aegis and Empowered Renew)
+                    float spell_trigger_amount = triggerAmount;
+                    SpellAuraHolder *aurHolder = GetSpellAuraHolder(67202);
+                    if(aurHolder)
+                  spell_trigger_amount *= 1.10f;
+                    basepoints[0] = damage *  spell_trigger_amount/100;
                    triggered_spell_id = 47753;
                    break;
                }
@@ -1345,13 +1350,18 @@ SpellAuraProcResult Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura
                        return SPELL_AURA_PROC_FAILED;

                    // Renew
                    Aura* healingAura = pVictim->GetAura(SPELL_AURA_PERIODIC_HEAL, SPELLFAMILY_PRIEST, UI64LIT(0x40), 0, GetGUID());
                    if (!healingAura)
                        return SPELL_AURA_PROC_FAILED;

                    int32 healingfromticks = healingAura->GetModifier()->m_amount * GetSpellAuraMaxTicks(procSpell);
-
-                    basepoints[0] = healingfromticks * triggerAmount / 100;
+                    
+                    //Item - Priest T9 Healing 4P Bonus (Divine Aegis and Empowered Renew)
+                    float spell_trigger_amount = triggerAmount;
+                    SpellAuraHolder *aurHolder = GetSpellAuraHolder(67202);
+                    if(aurHolder)
+                  spell_trigger_amount *= 1.10f;
+                    basepoints[0] = healingfromticks * spell_trigger_amount / 100;
                    triggered_spell_id = 63544;
                    break;
                }

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