Jump to content

[Fix] Shadow bite & Talent Improved Felhunter (warlock)


Guest Siegels

Recommended Posts

What bug does the patch fix? What features does the patch add?

With talent "Improved Felhunter", Felhunter must regain 4 or 8% of his maximum mana at each shadow bite.

For which repository revision was the patch created?

[9851]

Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

Don't know.

Who has been writing this patch? Please include either forum user names or email addresses.

Me

Hi,

I tried to correct this part of the talent. Maybe i will see for other part with Fel Intelligence, but for the moment:

@@ -480,6 +480,11 @@ void Spell::EffectSchoolDMG(SpellEffectIndex effect_idx)
                        if ((*itr)->GetCasterGUID() == owner->GetGUID())
                            ++counter;

+                    if (owner->HasSpell(54037))
+                        m_caster->SetPower(POWER_MANA,m_caster->GetPower(POWER_MANA)+m_caster->GetMaxPower(POWER_MANA)*4/100);
+                    else if (owner->HasSpell(54038))
+                        m_caster->SetPower(POWER_MANA,m_caster->GetPower(POWER_MANA)+m_caster->GetMaxPower(POWER_MANA)*8/100);
+
                    if (counter)
                        damage += (counter * owner->CalculateSpellDamage(unitTarget, m_spellInfo, EFFECT_INDEX_2) * damage) / 100.0f;
                }

Download available on Pastebin (here) and Filebeam (here).

Tested and works for me.

Link to comment
Share on other sites

  • 1 month later...
×
×
  • 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