diff options
author | megamage <none@none> | 2009-01-09 09:15:05 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-09 09:15:05 -0600 |
commit | cd4b875fd41ca4569875db51362f7cd1b4d03e95 (patch) | |
tree | d3f29b4a26047dfa3f170c78dce1705b69e13dbe /src | |
parent | ea0421919a86e3d803a86d78c102c1a2567630a1 (diff) |
*Deal damage in power burn.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellEffects.cpp | 4 | ||||
-rw-r--r-- | src/game/Unit.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 4c2c28e64e4..33cdd325545 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -2310,7 +2310,9 @@ void Spell::EffectPowerBurn(uint32 i) new_damage = int32(new_damage*multiplier); //m_damage+=new_damage; should not apply spell bonus //TODO: no log - unitTarget->ModifyHealth(-new_damage); + //unitTarget->ModifyHealth(-new_damage); + if(m_originalCaster) + m_originalCaster->DealDamage(unitTarget, new_damage); } void Spell::EffectHeal( uint32 /*i*/ ) diff --git a/src/game/Unit.h b/src/game/Unit.h index 85de2c871ef..ec192fe9428 100644 --- a/src/game/Unit.h +++ b/src/game/Unit.h @@ -906,7 +906,7 @@ class TRINITY_DLL_SPEC Unit : public WorldObject uint16 GetMaxSkillValueForLevel(Unit const* target = NULL) const { return (target ? getLevelForTarget(target) : getLevel()) * 5; } void RemoveSpellbyDamageTaken(uint32 damage, uint32 spell); - uint32 DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDamage, DamageEffectType damagetype, SpellSchoolMask damageSchoolMask, SpellEntry const *spellProto, bool durabilityLoss); + uint32 DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDamage = NULL, DamageEffectType damagetype = DIRECT_DAMAGE, SpellSchoolMask damageSchoolMask = SPELL_SCHOOL_MASK_NORMAL, SpellEntry const *spellProto = NULL, bool durabilityLoss = true); void Kill(Unit *pVictim, bool durabilityLoss = true); void ProcDamageAndSpell(Unit *pVictim, uint32 procAttacker, uint32 procVictim, uint32 procEx, uint32 amount, WeaponAttackType attType = BASE_ATTACK, SpellEntry const *procSpell = NULL); |