server-master/srcs/WingsAPI.Game/Skills/NpcMonsterSkill.cs
2026-02-10 18:21:30 +01:00

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; }
}