Jump to content

[update] Lock and Load


pasdVn

Recommended Posts

http://www.wowhead.com/?search=lock+and+load

This Talent changed with game version 3.1.3. Here is the updated code:

From 834e9e03ab2127ddaf023736e9e155085e265b1c Mon Sep 17 00:00:00 2001
From: pasdVn <[email protected]>
Date: Thu, 16 Jul 2009 15:26:27 +0200
Subject: [PATCH] Fixed hunter talent "Lock and Load" (56342 and ranks)

* update for game version 3.1.3
---
src/game/Unit.cpp |    9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index df41fba..3d07bd5 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -5440,8 +5440,9 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
            // Lock and Load
            if ( dummySpell->SpellIconID == 3579 )
            {
-                // Proc only from periodic (from trap activation proc another aura of this spell)
-                if (!(procFlag & PROC_FLAG_ON_DO_PERIODIC) || !roll_chance_i(triggerAmount))
+                // Proc only from black arrow- and immoltaion trap ticks (from trap activation proc another aura of this spell)
+                if (!(procFlag & PROC_FLAG_ON_DO_PERIODIC) || !(procSpell->SpellFamilyFlags & UI64LIT(0x0800000000000000) ||
+                    procSpell->SpellFamilyFlags2 & 0x00020000) || !roll_chance_i(triggerAmount))
                    return false;
                triggered_spell_id = 56453;
                target = this;
@@ -6834,8 +6835,8 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, Aura* triggeredB
        // Lock and Load
        case 56453:
        {
-            // Proc only from trap activation (from periodic proc another aura of this spell)
-            if (!(procFlags & PROC_FLAG_ON_TRAP_ACTIVATION) || !roll_chance_i(triggerAmount))
+            // Proc only from trap activation of frost- and freezing trap (from periodic proc another aura of this spell)
+            if (!(procFlags & PROC_FLAG_ON_TRAP_ACTIVATION) || !(procSpell->SpellFamilyFlags & 0x00000018) || !roll_chance_i(triggerAmount))
                return false;
            break;
        }
-- 
1.6.0.2.1172.ga5ed0


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