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

Inheritance: Aura.Channel.Skills.Base.StandardPrepareHandler
Afficher le fichier Open project: aura-project/aura Class Usage Examples

Méthodes publiques

Méthode Description
Cancel ( Creature creature, Skill skill ) : void

Cancels special effects.

Complete ( Creature creature, Skill skill, Aura.Shared.Network.Packet packet ) : void

Resets the skill's cooldown in old combat.

Counter doesn't use the new cooldown system, but Vars, similar to Final Hit. Var10 is the cooldown for normal hits, Var11 is for knuckles. That's why we have to reset it here.

Handle ( Creature target, Creature attacker ) : bool

Returns true if target has counter active and used it.

Handle ( ICollection targets, Creature attacker ) : bool

Returns true if a target had counter active and used it.

Prepare ( Creature creature, Skill skill, Aura.Shared.Network.Packet packet ) : bool

Handles skill preparation.

Ready ( Creature creature, Skill skill, Aura.Shared.Network.Packet packet ) : bool

Handles redying the skill, called when finishing casting it.

Training ( AttackerAction aAction, TargetAction tAction ) : void

Trains the skill for attacker and target, based on what happened.

Use ( Creature attacker, Creature target ) : void

Handles usage of the skill.

Method Details

Cancel() public méthode

Cancels special effects.
public Cancel ( Creature creature, Skill skill ) : void
creature Aura.Channel.World.Entities.Creature
skill Skill
Résultat void

Complete() public méthode

Resets the skill's cooldown in old combat.
Counter doesn't use the new cooldown system, but Vars, similar to Final Hit. Var10 is the cooldown for normal hits, Var11 is for knuckles. That's why we have to reset it here.
public Complete ( Creature creature, Skill skill, Aura.Shared.Network.Packet packet ) : void
creature Aura.Channel.World.Entities.Creature
skill Skill
packet Aura.Shared.Network.Packet
Résultat void

Handle() public static méthode

Returns true if target has counter active and used it.
public static Handle ( Creature target, Creature attacker ) : bool
target Aura.Channel.World.Entities.Creature
attacker Aura.Channel.World.Entities.Creature
Résultat bool

Handle() public static méthode

Returns true if a target had counter active and used it.
public static Handle ( ICollection targets, Creature attacker ) : bool
targets ICollection
attacker Aura.Channel.World.Entities.Creature
Résultat bool

Prepare() public méthode

Handles skill preparation.
public Prepare ( Creature creature, Skill skill, Aura.Shared.Network.Packet packet ) : bool
creature Aura.Channel.World.Entities.Creature
skill Skill
packet Aura.Shared.Network.Packet
Résultat bool

Ready() public méthode

Handles redying the skill, called when finishing casting it.
public Ready ( Creature creature, Skill skill, Aura.Shared.Network.Packet packet ) : bool
creature Aura.Channel.World.Entities.Creature
skill Skill
packet Aura.Shared.Network.Packet
Résultat bool

Training() public méthode

Trains the skill for attacker and target, based on what happened.
public Training ( AttackerAction aAction, TargetAction tAction ) : void
aAction AttackerAction
tAction TargetAction
Résultat void

Use() public méthode

Handles usage of the skill.
public Use ( Creature attacker, Creature target ) : void
attacker Aura.Channel.World.Entities.Creature
target Aura.Channel.World.Entities.Creature
Résultat void