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

Inheritance: Aura.Channel.Skills.Base.StandardPrepareHandler, IInitiableSkillHandler
Mostra file Open project: aura-project/aura Class Usage Examples

Public Methods

Method 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 method

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

Complete() public method

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
return void

Handle() public static method

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
return bool

Init() public method

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

OnCreatureAttack() public method

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

Prepare() public method

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
return bool

Ready() public method

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
return bool