Jump to content

[partial fix]borrowed time (haste part)


Guest raftom

Recommended Posts

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

haste part for talent borrowed time

For which repository revision was the patch created?

7643

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

didn't find any

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

that would be me :)

diff --git a/Unit.cpp b/Unit2.cpp
index c8f19e0..11ca352 100644
--- a/Unit.cpp
+++ b/Unit2.cpp
@@ -6343,6 +6343,22 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, Aura* triggeredB
                    basepoints0 = damage * triggerAmount / 100 / 3;
                    target = this;
                }
+                //borrowed time - haste
+                else if (auraSpellInfo->SpellIconID == 2899)
+                {
+                    switch (auraSpellInfo->Id)
+                    {
+                        case 52795: trigger_spell_id = 59887; break;
+                        case 52797: trigger_spell_id = 59888; break;
+                        case 52798: trigger_spell_id = 59889; break;
+                        case 52799: trigger_spell_id = 59890; break;
+                        case 52800: trigger_spell_id = 59891; break;
+                        default:
+                            sLog.outError("Unit::HandleProcTriggerSpell: Spell %u not handled in Borrowed time", auraSpellInfo->Id);
+                        return false;
+                    }
+                    target = pVictim;
+                }
                break;
            }
            case SPELLFAMILY_DRUID:

edit:

it already worked sry .. i didnt noticed

Link to comment
Share on other sites

  • 6 months 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