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

Inheritance: ISkillHandler, IInitiableSkillHandler
Afficher le fichier Open project: aura-project/aura Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
OnCreatureAttack ( TargetAction tAction ) : void

Handles training based on what happened in the combat action.

Method Details

Handle() public static méthode

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
Résultat void

Init() public méthode

Subscribes handler to required events.
public Init ( ) : void
Résultat void