diff options
author | tobmaps <spambot42@yandex.ru> | 2011-05-15 00:55:41 +0700 |
---|---|---|
committer | tobmaps <spambot42@yandex.ru> | 2011-05-15 00:55:41 +0700 |
commit | ea045b794c2317a32bb88ee2b0f10421efccfcca (patch) | |
tree | 9de4686ef4db9abf42462a732fb14cdf141d310f /src | |
parent | b2655b198cfcb1a6c2a9e8556cf41dd31a769e6e (diff) |
Core/Spells: Instant damage caused by Improved Devouring Plague should also heal caster
Closes #583
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Spells/Auras/SpellAuras.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuras.cpp b/src/server/game/Spells/Auras/SpellAuras.cpp index 50d751b274b..f2c87cf3c11 100755 --- a/src/server/game/Spells/Auras/SpellAuras.cpp +++ b/src/server/game/Spells/Auras/SpellAuras.cpp @@ -1056,7 +1056,9 @@ void Aura::HandleAuraSpecificMods(AuraApplication const * aurApp, Unit * caster, if (AuraEffect const * aurEff = caster->GetDummyAuraEffect(SPELLFAMILY_PRIEST, 3790, 1)) { int32 basepoints0 = aurEff->GetAmount() * GetEffect(0)->GetTotalTicks() * caster->SpellDamageBonus(target, GetSpellProto(), GetEffect(0)->GetAmount(), DOT) / 100; + int32 heal = int32(CalculatePctN(basepoints0, 15)); caster->CastCustomSpell(target, 63675, &basepoints0, NULL, NULL, true, NULL, GetEffect(0)); + caster->CastCustomSpell(caster, 75999, &heal, NULL, NULL, true, NULL, GetEffect(0)); } } // Renew |