diff options
author | QAston <none@none> | 2009-03-01 16:29:40 +0100 |
---|---|---|
committer | QAston <none@none> | 2009-03-01 16:29:40 +0100 |
commit | 44de012148eda14fd3286b04a933ad9f9e286105 (patch) | |
tree | d4c733bd9fdfb0f9f13715a4c08a76428cd2f3a7 /src/game/Unit.cpp | |
parent | ef500cc204c29f85125486f45f0ca82e4c3ac0ed (diff) |
*Fix drain mana, judgement of widsom and viper sting damage amount. Patch by Maxxie.
*Add one more rank of Devour Magic.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 625cc148baf..bbb7ffb9fb4 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -5765,7 +5765,10 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu case 20186: { if (pVictim->getPowerType() == POWER_MANA) - pVictim->CastSpell(pVictim, 20268, true, 0, triggeredByAura); + { + int32 gainMana = pVictim->GetCreateMana() * triggeredByAura->GetBasePoints() / 100; + pVictim->CastCustomSpell(pVictim, 20268, &gainMana, 0, 0, true, 0, triggeredByAura); + } return true; } // Holy Power (Redemption Armor set) |