Jump to content

Recommended Posts

Posted

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

If the target has the Sacred Shield effect, Flash of Light heal an additional 100% over 12 sec.

For which repository revision was the patch created?

revision 8918

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

http://getmangos.eu/community/viewtopic.php?id=11287

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

Myself

DB part

INSERT INTO spell_proc_event VALUES
(58597 , 0, 10, 1073741824, 0, 0, 32768, 0, 0, 100, 0);

Core part

diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index a43c520..4fb03a6 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -5864,6 +5910,19 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
                basepoints0 = GetAttackTime(BASE_ATTACK) * int32(ap*0.022f + 0.044f * holy) / 1000;
                break;
            }
+			// Sacred Shield proc Flash of Light HoT
+			if ( dummySpell->Id == 58597 )
+			{
+				Unit* caster = triggeredByAura->GetCaster();
+
+				if ( caster && pVictim && caster->GetGUID() == pVictim->GetGUID() )
+				{
+					triggered_spell_id = 66922;
+					basepoints0 = int32( damage / 12 );
+					target = this;
+				}
+				break;
+			}
            // Sacred Shield
            if (dummySpell->SpellFamilyFlags & UI64LIT(0x0008000000000000))
            {

Sorry for the name of the topic. I realised my mistake after posting new thread.

  • 39 years later...
  • 3 weeks 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