Aura.Channel.Skills.AttackerAction.AttackerAction C# (CSharp) Method

AttackerAction() public method

Creates new attacker action, setting SkillId to the currently active skill.
public AttackerAction ( CombatActionType type, Creature creature, long targetId ) : System
type CombatActionType
creature Aura.Channel.World.Entities.Creature
targetId long
return System
		public AttackerAction(CombatActionType type, Creature creature, long targetId)
		{
			this.Flags = type;
			this.Creature = creature;
			this.TargetId = targetId;
			this.WeaponParameterType = 1;

			var active = creature.Skills.ActiveSkill;
			this.SkillId = (active == null ? SkillId.CombatMastery : active.Info.Id);
		}

Same methods

AttackerAction::AttackerAction ( CombatActionType type, Creature creature, long targetId, SkillId skillId ) : System