Class HealthStealEffect
When an attack hits the defender, the attacker receives a percentage proportional to the damage inflicted.
Inherited Members
Namespace: AutoBattleFramework.Skills
Assembly: cs.temp.dll.dll
Syntax
public class HealthStealEffect : OnHitEffect
Fields
healColor
Color of the heal popup
Declaration
public Color healColor
Field Value
Type | Description |
---|---|
Color |
percentage
Ratio of life points to damage inflicted that the attacker will recover.
Declaration
public float percentage
Field Value
Type | Description |
---|---|
Single |
Methods
OnHit(GameCharacter, GameCharacter, Single)
When an attack hits the defender, the attacker receives a percentage proportional to the damage inflicted.
Declaration
public override void OnHit(GameCharacter defender, GameCharacter attacker, float damage)
Parameters
Type | Name | Description |
---|---|---|
GameCharacter | defender | Defending GameCharacter. In this case it is not necessary. |
GameCharacter | attacker | Attacking GameCharacter that will recover life points. |
Single | damage | Damage that has been infringed. |