diff options
author | Kudlaty <none@none> | 2009-10-31 01:50:52 +0100 |
---|---|---|
committer | Kudlaty <none@none> | 2009-10-31 01:50:52 +0100 |
commit | 98d53f6a9d32462283cac9e43d31f8a0c132c53b (patch) | |
tree | 46e938328f91125b38dcbf6b49a553c18f93e35e /src/game/Pet.cpp | |
parent | a5937d9d13f5071c1b54dc1c3fa9530a2494e778 (diff) |
Fix Feeding Frenzy, Cobra Reflexes, Cornered. Now they are active only when victim hp is below certain percentage. Patch by thenecromancer, updated by krz
--HG--
branch : trunk
Diffstat (limited to 'src/game/Pet.cpp')
-rw-r--r-- | src/game/Pet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp index 8920647968c..6275bd8a75b 100644 --- a/src/game/Pet.cpp +++ b/src/game/Pet.cpp @@ -1352,7 +1352,7 @@ bool Pet::addSpell(uint32 spell_id,ActiveStates active /*= ACT_DECIDE*/, PetSpel m_spells[spell_id] = newspell; - if (IsPassiveSpell(spell_id)) + if (IsPassiveSpell(spell_id) && (!spellInfo->CasterAuraState || HasAuraState(AuraState(spellInfo->CasterAuraState)))) CastSpell(this, spell_id, true); else m_charmInfo->AddSpellToActionBar(spell_id); |