Jump to content

[patch][6018] Spell_aura_mod_power_regen_percent

Guest thenecromancer

Recommended Posts

Problem: Focus is not affected by SPELL_AURA_MOD_POWER_REGEN_PERCENT, this is however required for one talent to work

Revision 6007

note that this patch itselfs does not fix the talent, but it is required for it's fix, to have it fully working, pets must have aura 19589, and modifier from talent should affect it

Index: game/Pet.cpp
--- game/Pet.cpp        (revision 6007)
+++ game/Pet.cpp        (working copy)
@@ -570,6 +570,12 @@
        uint32 maxValue = GetMaxPower(POWER_FOCUS);
        if (curValue >= maxValue) return;
        uint32 addvalue = 25;
+        AuraList const& ModPowerRegenPCTAuras = GetAurasByType(SPELL_AURA_MOD_POWER_REGEN_PERCENT);
+        for(AuraList::const_iterator i = ModPowerRegenPCTAuras.begin(); i != ModPowerRegenPCTAuras.end(); ++i)
+                if ((*i)->GetModifier()->m_miscvalue == POWER_FOCUS)
+                        addvalue *= ((*i)->GetModifier()->m_amount + 100) / 100.0;
        ModifyPower(POWER_FOCUS, addvalue);

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