From a40dad1f11f63b64c7f256bd882e50627015889b Mon Sep 17 00:00:00 2001 From: _manuel_ Date: Mon, 1 Mar 2010 19:51:48 -0300 Subject: Fixed Eye for an Eye by Gyullo. --HG-- branch : trunk --- src/game/Unit.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3