C# Class Aura.Channel.Skills.Combat.CriticalHit

Inheritance: ISkillHandler, IInitiableSkillHandler
Mostrar archivo Open project: aura-project/aura Class Usage Examples

Public Methods

Method Description
Handle ( Creature attacker, float critChance, float &damage, TargetAction tAction, bool bypassNoviceCheck = false ) : void

Checks if attacker has Critical Hit and applies crit bonus by chance. Also sets the target action's critical option if a crit happens.

Init ( ) : void

Subscribes handler to required events.

Private Methods

Method Description
OnCreatureAttack ( TargetAction tAction ) : void

Handles training based on what happened in the combat action.

Method Details

Handle() public static method

Checks if attacker has Critical Hit and applies crit bonus by chance. Also sets the target action's critical option if a crit happens.
public static Handle ( Creature attacker, float critChance, float &damage, TargetAction tAction, bool bypassNoviceCheck = false ) : void
attacker Aura.Channel.World.Entities.Creature
critChance float
damage float
tAction TargetAction
bypassNoviceCheck bool
return void

Init() public method

Subscribes handler to required events.
public Init ( ) : void
return void