C# 클래스 Aura.Channel.Skills.Combat.Defense

상속: Aura.Channel.Skills.Base.StandardPrepareHandler, IInitiableSkillHandler
파일 보기 프로젝트 열기: aura-project/aura 1 사용 예제들

공개 메소드들

메소드 설명
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