diff options
author | megamage <none@none> | 2009-05-08 19:20:28 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-08 19:20:28 -0500 |
commit | bd33ebf6d37705547d8db9446918ce502bc8b737 (patch) | |
tree | e3d444c7547b5880bf22cd467d388b520fd6dc6d /src/game/Spell.cpp | |
parent | b7b7262c7c13c8a7c809543f86459a352153e1d1 (diff) |
[7801] Apply damage mods from scripts or target state not in DealDamage but in new function before send data to client. Author: VladimirMangos
* Fixed bug with health decrease (client side visual bug) at spell damage by target with AI::DamageTaken damage set to 0
* Fixed bug with ignore .die command and instant kill damage in some cases.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r-- | src/game/Spell.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 168e6ddd16f..d4e2207964b 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -1028,6 +1028,7 @@ void Spell::DoAllEffectOnTarget(TargetInfo *target) // Add bonuses and fill damageInfo struct caster->CalculateSpellDamageTaken(&damageInfo, m_damage, m_spellInfo); + caster->DealDamageMods(damageInfo.target,damageInfo.damage,&damageInfo.absorb); // Send log damage message to client caster->SendSpellNonMeleeDamageLog(&damageInfo); |