diff options
author | _manuel_ <manue.l@live.com.ar> | 2010-03-08 23:17:26 -0300 |
---|---|---|
committer | _manuel_ <manue.l@live.com.ar> | 2010-03-08 23:17:26 -0300 |
commit | ca033148c98cbfeb1544b6444a48e414a1603f07 (patch) | |
tree | 072590a421ce614e51f14d9c744c3d63a01b916e /src | |
parent | 3847e3be42fdebcf1ddf3a46a8daa05605c3d099 (diff) |
Backed out commit 3cb8647899, values are in dbcs, if you have issues with the spell try to show us the debug lines.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 7312e96ddf5..709ec8619db 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -5306,24 +5306,18 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger } // Eye for an Eye case 9799: + case 25988: { // return damage % to attacker but < 50% own total health - basepoints0 = 5*int32(damage)/100; + basepoints0 = int32((triggerAmount* damage) /100); + if (basepoints0 > GetMaxHealth()/2) basepoints0 = GetMaxHealth()/2; - triggered_spell_id = 25997; - - break; - } - case 25988: - { - // return damage % to attacker but < 50% own total health - basepoints0 = 10*int32(damage)/100; - if(basepoints0 > GetMaxHealth()/2) - basepoints0 = GetMaxHealth()/2; + sLog.outDebug("DEBUG LINE: Data about Eye for an Eye ID %u, damage taken %u, unit max health %u, damage done %u", dummySpell->Id, damage, GetMaxHealth(),basepoints0); triggered_spell_id = 25997; + break; } // Sweeping Strikes |