C# Класс Aura.Channel.Skills.Combat.Defense

Наследование: Aura.Channel.Skills.Base.StandardPrepareHandler, IInitiableSkillHandler
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Cancel() публичный Метод

Cancels special effects.
public Cancel ( Creature creature, Skill skill ) : void
creature Aura.Channel.World.Entities.Creature
skill Skill
Результат void

Complete() публичный Метод

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
Результат void

Handle() публичный статический Метод

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
Результат bool

Init() публичный Метод

Subscribes the handler to events required for training.
public Init ( ) : void
Результат void

OnCreatureAttack() публичный Метод

Training, called when someone attacks something.
public OnCreatureAttack ( TargetAction tAction ) : void
tAction TargetAction
Результат void

Prepare() публичный Метод

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
Результат bool

Ready() публичный Метод

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
Результат bool