aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-13 10:12:22 -0600
committermegamage <none@none>2008-12-13 10:12:22 -0600
commit98e122b15314c14c2db6dcf495335075f1543506 (patch)
treebd9fa649d30c1e3bb4ffab142b7421cdbfe67410 /src/game/SpellEffects.cpp
parent328e5a1bdecd31f2411232a6f27adf96c96a716e (diff)
*Fix swiftmend healing bonus. By mobel.
*Only remove one HOT but not all HOT when using swiftmend. --HG-- branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r--src/game/SpellEffects.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 011c69dcc27..70ec4b47ed4 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -2352,13 +2352,15 @@ void Spell::EffectHeal( uint32 /*i*/ )
}
//int32 tickheal = caster->SpellHealingBonus(targetAura->GetSpellProto(), targetAura->GetModifier()->m_amount, DOT, unitTarget);
- int32 tickheal = targetAura->GetSpellProto()->EffectBasePoints[idx] + 1;
+ //int32 tickheal = targetAura->GetSpellProto()->EffectBasePoints[idx] + 1;
+ //It is said that talent bonus should not be included
+ int32 tickheal = targetAura->GetModifierValue();
int32 tickcount = GetSpellDuration(targetAura->GetSpellProto()) / targetAura->GetSpellProto()->EffectAmplitude[idx];
- //TODO: do not remove all auras
- unitTarget->RemoveAurasDueToSpell(targetAura->GetId());
-
addhealth += tickheal * tickcount;
- addhealth = caster->SpellHealingBonus(m_spellInfo, addhealth,HEAL, unitTarget);
+ unitTarget->RemoveAurasDueToCasterSpell(targetAura->GetId(), targetAura->GetCasterGUID());
+
+ //addhealth += tickheal * tickcount;
+ //addhealth = caster->SpellHealingBonus(m_spellInfo, addhealth,HEAL, unitTarget);
}
else
addhealth = caster->SpellHealingBonus(m_spellInfo, addhealth,HEAL, unitTarget);