Jump to content

[9313][fix] Feeding Frenzy


pasdVn
 Share

Recommended Posts

The Spells: http://www.wowhead.com/?search=Feeding+Frenzy#talents

Just a small error in the code with those Spells: The health of the pets victim should be at or above 35% health, not the pet itself ;)

From 045ae8af972b53251153d6d2db43a9e8789fb1f4 Mon Sep 17 00:00:00 2001
From: pasdVn <[email protected]>
Date: Tue, 4 Aug 2009 16:50:48 +0200
Subject: [PATCH] fixed periodic dummy procs of 53511 and ranks

---
src/game/SpellAuras.cpp |   11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 9422ad3..8ce6715 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -7490,14 +7490,21 @@ void Aura::PeriodicDummyTick()
                //    return;
                // Feeding Frenzy Rank 1
                case 53511:
-                    if ( m_target->GetHealth() * 100 < m_target->GetMaxHealth() * 35 )
+                {
+                    Unit* victim = m_target->getVictim();
+                    if( victim && victim->GetHealth() * 100 < victim->GetMaxHealth() * 35 )
                        m_target->CastSpell(m_target, 60096, true, NULL, this);
                    return;
+                }
+                break;
                // Feeding Frenzy Rank 2
                case 53512:
-                    if ( m_target->GetHealth() * 100 < m_target->GetMaxHealth() * 35 )
+                {
+                    Unit* victim = m_target->getVictim();
+                    if( victim && victim->GetHealth() * 100 < victim->GetMaxHealth() * 35 )
                        m_target->CastSpell(m_target, 60097, true, NULL, this);
                    return;
+                }
                default:
                    break;
            }
-- 
1.6.4.3

Github: http://github.com/pasdVn/mangos/commit/045ae8af972b53251153d6d2db43a9e8789fb1f4

pasdVn

Link to comment
Share on other sites

  • 6 months later...
 Share

×
×
  • 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