Class ApplyDebuffOnHitEffect
When an attack with this effects hits a GameCharacter, applies a BuffEffect on that GameCharacter. Use it to apply negative effects such as stat reduction, or effect damage such as poison or burns.
Inherited Members
Namespace: AutoBattleFramework.Skills
Assembly: cs.temp.dll.dll
Syntax
public class ApplyDebuffOnHitEffect : OnHitEffect
Fields
effect
Buff the will be applied to the defender.
Declaration
public BuffEffect effect
Field Value
Type | Description |
---|---|
BuffEffect |
Methods
OnHit(GameCharacter, GameCharacter, Single)
Applies the buff when the attack hits.
Declaration
public override void OnHit(GameCharacter defender, GameCharacter attacker, float damage)
Parameters
Type | Name | Description |
---|---|---|
GameCharacter | defender | GameCharacter recieving the attack. The BuffEffect will be applied to this GameCharacter. |
GameCharacter | attacker | GameCharacter that is attacking. |
Single | damage | Fixed amount of damage. In this case it is not necessary. |