Jump to content

[s0501][Mangos-0.12] Backporting


Recommended Posts

Posted

base commit : 5360df3d643d3f8ad8fe0c015edface250df5a76

Correctly restore powers with energize-effect spells like Shadowfiend or Mana Tide Totem

diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 52e7921..99c080f 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -7345,7 +7345,7 @@ void Unit::EnergizeBySpell(Unit *pVictim, uint32 SpellID, uint32 Damage, Powers
{
    SendEnergizeSpellLog(pVictim, SpellID, Damage, powertype);
    // needs to be called after sending spell log
-    ModifyPower(powertype, Damage);
+    pVictim->ModifyPower(powertype, Damage);
}

uint32 Unit::SpellDamageBonus(Unit *pVictim, SpellEntry const *spellProto, uint32 pdamage, DamageEffectType damagetype, uint32 stack)

Posted

In [s0501]. Thank you! :)

In fact in cases commits without hard conflicts you can just provided short porblem description and commit hash. I use nice script that do prepare backported mangos commit very easy (resolve some problems with git cherry-pick use in application to mangos sources) writen by freghar.

×
×
  • 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