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

Inheritance: Aura.Channel.Skills.Base.StandardPrepareHandler, IInitiableSkillHandler
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.

Defense doesn't use the new cooldown system, but Vars, similar to Final Hit. Var7 seems to be the cooldown. That's why we have to reset it here.

Handle ( AttackerAction aAction, TargetAction tAction, float &damage ) : bool

Checks if target has Defense skill activated and makes the necessary changes to the actions, stun times, and damage.

Init ( ) : void

Subscribes the handler to events required for training.

OnCreatureAttack ( TargetAction tAction ) : void

Training, called when someone attacks something.

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

Prepares the skill, called to start casting.

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

Readies the skill, called when casting is done.

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.
Defense doesn't use the new cooldown system, but Vars, similar to Final Hit. Var7 seems to be the cooldown. 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

Checks if target has Defense skill activated and makes the necessary changes to the actions, stun times, and damage.
public static Handle ( AttackerAction aAction, TargetAction tAction, float &damage ) : bool
aAction AttackerAction
tAction TargetAction
damage float
Résultat bool

Init() public méthode

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

OnCreatureAttack() public méthode

Training, called when someone attacks something.
public OnCreatureAttack ( TargetAction tAction ) : void
tAction TargetAction
Résultat void

Prepare() public méthode

Prepares the skill, called to start casting.
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

Readies the skill, called when casting is done.
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