Jump to content

[fix]Blade Warding


Guest laise

Recommended Posts

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

fixes damage inflict and aura remove on parry

For which repository revision was the patch created?

9112

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 6a820c6..0c03421 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -6947,6 +6947,18 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, Aura* triggeredB
                //case 44527: break;                        // Hate Monster (Spar Buddy) (30 sec)
                //case 44819: break;                        // Hate Monster (Spar Buddy) (>30% Health)
                //case 44820: break;                        // Hate Monster (Spar) (<30%)
+                case 64440:                                 // Blade Warding
+                {
+                    SpellEntry const *triggeredSpell = sSpellStore.LookupEntry(64442);
+                    basepoints[0] = triggeredByAura->GetStackAmount() * triggeredSpell->CalculateSimpleValue(0);
+                    trigger_spell_id = triggeredSpell->Id;
+                    triggeredByAura->SetStackAmount(1); // allow remove of all stack
+
+                    if (Aura *aur = GetAura(64440, 0))
+                        aur->SetStackAmount(1);
+
+                    break;
+                }
                case 45057:                                 // Evasive Maneuvers (Commendation of Kael`thas trinket)
                    // reduce you below $s1% health
                    if (GetHealth() - damage > GetMaxHealth() * triggerAmount / 100)

-- (64440) Blade Warding ()
DELETE FROM `spell_proc_event` WHERE `entry` IN (64440);
INSERT INTO `spell_proc_event` VALUES
(64440, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000020, 0.000000, 0.000000, 0);

Link to comment
Share on other sites

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