Jump to content

[fix] Glyph of Prayer of Healing


Auntie Mangos

Recommended Posts

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

It fixes the proc of Glyph of Prayer of Healing spell after casting Prayer of Healing with the glyph

For which repository revision was the patch created?

10148

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

Yes, there is, over here

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

Me, Danstahr

diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 2db68f7..89e1ff9 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -5226,6 +5226,13 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
                    triggered_spell_id = 28810;
                    break;
                }
+               // Glyph of Prayer of Healing
+               case 55680:
+               {
+                   basepoints0 = int32(damage * triggerAmount  / 200);   // 10% each tick
+                   triggered_spell_id = 56161;
+                   break;
+               }
                // Glyph of Dispel Magic
                case 55677:
                {

Link to comment
Share on other sites

  • 40 years later...
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 2db68f7..89e1ff9 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -5226,6 +5226,13 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
                    triggered_spell_id = 28810;
                    break;
                }
+               // Glyph of Prayer of Healing
+               case 55680:
+               {
+                   basepoints0 = int32(damage * 20 / 100 / 2);   // divided in two ticks
+                   triggered_spell_id = 56161;
+                   break;
+               }
                // Glyph of Dispel Magic
                case 55677:
                {

Link to comment
Share on other sites

  • 1 month 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