Jump to content

[fix]t10 death knight melee set bonus


Guest laise

Recommended Posts

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

fixes Advantage cast only when all runes on cd

For which repository revision was the patch created?

9427

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 80fc804..0eb6282 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -7812,6 +7812,16 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, Aura* triggeredB
                if (procSpell->Id != 47633)
                    return false;
            }
+            // Item - Death Knight T10 Melee 4P Bonus
+            else if (auraSpellInfo->Id == 70656)
+            {
+                if (GetTypeId() != TYPEID_PLAYER || getClass() != CLASS_DEATH_KNIGHT)
+                    return false;
+
+                for(uint32 i = 0; i < MAX_RUNES; ++i)
+                    if (((Player*)this)->GetRuneCooldown(i) == 0)
+                        return false;
+            }
            // Blade Barrier
            else if (auraSpellInfo->SpellIconID == 85)
            {

has same spell icon as Blade Barrier =\\

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