Jump to content

[patch] King of the Jungle


Guest Neveragain

Recommended Posts

To addition POWER_ENERGY ?

src/game/Spell.cpp
@@ -3025,7 +3025,14 @@ void Spell::cast(bool skipCheck)
                 AddTriggeredSpell(60089);
             // Berserk (Bear Mangle part)
             else if (m_spellInfo->Id == 50334)
-                AddTriggeredSpell(58923); 
+                AddTriggeredSpell(58923);
+            else if (m_spellInfo->SpellFamilyFlags2 & 0x00000800  && m_caster->m_form == FORM_CAT)
+                if (m_caster->HasSpell(48495))
+                    m_caster->SetPower(POWER_ENERGY, m_caster->GetPower(POWER_ENERGY) + 60);
+                else if (m_caster->HasSpell(48494))
+                    m_caster->SetPower(POWER_ENERGY, m_caster->GetPower(POWER_ENERGY) + 40);
+                else if (m_caster->HasSpell(48492))
+                    m_caster->SetPower(POWER_ENERGY, m_caster->GetPower(POWER_ENERGY) + 20);
           break;
        }
        case SPELLFAMILY_ROGUE:
Link to comment
Share on other sites

  • 5 months later...

In [11205] after updating and cleaning up a bit.

With the "new" aura system it is actually possible to trigger the individual effects from different spells, so so need to re-check triggered spell in dummy implementation (at least in my tests it worked ^^)

Removal put in HandleSpellSpecificBoosts, that seems to be the more apropriate place.

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