Jump to content

[fix]Infusion of Light (Sacred Shield/Flash of Light part)


Guest laise

Recommended Posts

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

fixes heal over time applying when target has Sacred Shield

and use original Spell proc flags for Sacred Shield

For which repository revision was the patch created?

9531

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

haven't seen any

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

me

diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index d6d1adb..d9a7911 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -6595,6 +6595,24 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
                // Sacred Shield (talent rank)
                case 53601:
                {
+                    // Infusion of Light second part
+                    if (procFlag & PROC_FLAG_TAKEN_POSITIVE_SPELL)
+                    {
+                        if (procSpell->SpellFamilyName == SPELLFAMILY_PALADIN && (procSpell->SpellFamilyFlags & UI64LIT(0x40000000)))
+                        {
+                            AuraList const& auras = pVictim->GetAurasByType(SPELL_AURA_PROC_TRIGGER_SPELL);
+                            for(AuraList::const_iterator iter = auras.begin(); iter!=auras.end(); ++iter)
+                            {
+                                if((*iter)->GetSpellProto()->SpellFamilyName == SPELLFAMILY_PALADIN && (*iter)->GetSpellProto()->SpellIconID == 3021)
+                                {
+                                    int32 bp = damage * (*iter)->GetSpellProto()->CalculateSimpleValue(EFFECT_INDEX_2) / 1200;
+                                    pVictim->CastCustomSpell(this, 66922, &bp, NULL, NULL, true, NULL, (*iter), pVictim->GetGUID());
+                                    return true;
+                                }
+                            }
+                        }
+                        return false;
+                    }
                    triggered_spell_id = 58597;
                    target = this;
                    break;

sql:

DELETE FROM spell_proc_event WHERE entry=53601

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...
×
×
  • 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