public MobAttack(Mob mob, int targetId, AttackResult attackResult) { IsSuccess = attackResult.Success; MobId = mob.Id; TargetId = targetId; Damage = new ushort[] { attackResult.Damage.HP, attackResult.Damage.SP, attackResult.Damage.MP }; }
public MobSkillAttack(int mobId, int targetId, Skill skill, AttackResult attackResult) { IsSuccess = attackResult.Success; MobId = mobId; TargetId = targetId; SkillId = skill.SkillId; SkillLevel = skill.SkillLevel; Damage = new ushort[] { attackResult.Damage.HP, attackResult.Damage.SP, attackResult.Damage.MP }; }
public AttackResult(AttackSuccess success, Damage damage) { Success = success; Damage = damage; }
public AttackResult(AttackSuccess success, Damage damage, ushort absorb = 0) { Success = success; Damage = damage; Absorb = absorb; }