Fixed Eye for an Eye by Gyullo.
--HG-- branch : trunk
This commit is contained in:
+11
-1
@@ -5295,10 +5295,20 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
|
|||||||
}
|
}
|
||||||
// Eye for an Eye
|
// Eye for an Eye
|
||||||
case 9799:
|
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:
|
case 25988:
|
||||||
{
|
{
|
||||||
// return damage % to attacker but < 50% own total health
|
// return damage % to attacker but < 50% own total health
|
||||||
basepoints0 = triggerAmount*int32(damage)/100;
|
basepoints0 = 10*int32(damage)/100;
|
||||||
if(basepoints0 > GetMaxHealth()/2)
|
if(basepoints0 > GetMaxHealth()/2)
|
||||||
basepoints0 = GetMaxHealth()/2;
|
basepoints0 = GetMaxHealth()/2;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user