32 lines
No EOL
766 B
C#
32 lines
No EOL
766 B
C#
// WingsEmu
|
|
//
|
|
// Developed by NosWings Team
|
|
|
|
using System;
|
|
using WingsEmu.DTOs.Skills;
|
|
|
|
namespace WingsEmu.Game.Skills;
|
|
|
|
public interface INpcMonsterSkill : IBattleEntitySkill
|
|
{
|
|
bool IsBasicAttack { get; }
|
|
bool IsIgnoringHitChance { get; }
|
|
}
|
|
|
|
public class NpcMonsterSkill : INpcMonsterSkill
|
|
{
|
|
public NpcMonsterSkill(SkillDTO skill, short rate, bool isBasicAttack, bool isIgnoringHitChance)
|
|
{
|
|
Skill = skill;
|
|
Rate = rate;
|
|
IsBasicAttack = isBasicAttack;
|
|
IsIgnoringHitChance = isIgnoringHitChance;
|
|
}
|
|
|
|
public short Rate { get; }
|
|
public bool IsIgnoringHitChance { get; }
|
|
public bool IsBasicAttack { get; }
|
|
|
|
public DateTime LastUse { get; set; } = DateTime.MinValue;
|
|
public SkillDTO Skill { get; }
|
|
} |