Jump to content

[patch]Revitalize restore proper mana

Guest tehmarto

Recommended Posts

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

As far as I know revitalize should restore 1% from max mana, not from base mana.

For which repository revision was the patch created?

Works with with 9842 .

For which repository revision was the patch created?

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

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


diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index c1723f7..1cf75b4 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -3413,15 +3449,17 @@ void Spell::EffectEnergize(SpellEffectIndex eff_idx)
        case 24532:                                         // Burst of Energy
            level_diff = m_caster->getLevel() - 60;
            level_multiplier = 4;
        case 31930:                                         // Judgements of the Wise
-        case 48542:                                         // Revitalize (mana restore case)
        case 63375:                                         // Improved Stormstrike
        case 68082:                                         // Glyph of Seal of Command
            damage = damage * unitTarget->GetCreateMana() / 100;
+        case 48542:                                         // Revitalize (mana restore case)
+            damage = damage * unitTarget->GetMaxPower(POWER_MANA) / 100;
+        break;

    if (level_diff > 0)

Link to comment
Share on other sites

  • 4 months 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