2025-07-27 14:42:30 +08:00

40 lines
875 B
C#

/*
* @Author: 白哉
* @Description:
* @Date: 2025年04月23日 星期三 21:04:18
* @Modify:
*/
using RuntimeData;
using System;
namespace Logic.Skill
{
[Serializable]
public class EscapeSkill : SkillBase
{
public EscapeSkill()
{
IsPermanent = true;
TurnsLimit = 0;
Score = 4;
}
public override SkillType GetSkillType()
{
return SkillType.ESCAPE;
}
public override void OnDamageOther(MapData mapData, SettlementInfo info)
{
if (info == null) return;
if (info.DamageType != DamageType.ActiveAttack) return;
if (info.DamageOrigin == null || info.DamageTarget == null) return;
info.DamageOrigin.MP = 1;
info.DamageOrigin.RenderMark = true;
}
}
}