diff options
author | _manuel_ <manue.l@live.com.ar> | 2010-03-01 19:51:48 -0300 |
---|---|---|
committer | _manuel_ <manue.l@live.com.ar> | 2010-03-01 19:51:48 -0300 |
commit | a40dad1f11f63b64c7f256bd882e50627015889b (patch) | |
tree | 2fb5813648518d287d43d7bac4c6f5a266bef943 /src/game/Unit.cpp | |
parent | 661a8be9a51439a179063c11e3e3b069deb2b5f9 (diff) |
Fixed Eye for an Eye by Gyullo.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index bc22087a0d7..adee7ab39a3 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -5295,10 +5295,20 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger } // Eye for an Eye case 9799: + { + // return damage % to attacker but < 50% own total health + basepoints0 = 5*int32(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 = triggerAmount*int32(damage)/100; + basepoints0 = 10*int32(damage)/100; if(basepoints0 > GetMaxHealth()/2) basepoints0 = GetMaxHealth()/2; |