52 lines
1.2 KiB
C#
52 lines
1.2 KiB
C#
using RuntimeData;
|
|
using MemoryPack;
|
|
|
|
namespace Logic.Skill
|
|
{
|
|
public partial class UtsuhoBaseSkill : SkillBase
|
|
{
|
|
public UtsuhoBaseSkill()
|
|
{
|
|
IsPermanent = true;
|
|
TurnsLimit = 0;
|
|
Score = -10;
|
|
}
|
|
|
|
public override SkillType GetSkillType()
|
|
{
|
|
return SkillType.UtsuhoBase;
|
|
}
|
|
|
|
// 无法主动攻击
|
|
public override bool IsLimitSelfAttack(UnitData self, MapData mapData)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// 无法反击
|
|
public override bool IsLimitSelfCounterAttack(UnitData self, MapData mapData)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// 造成伤害时不被反击
|
|
public override bool IsLimitTargetCounterAttack(UnitData self, MapData mapData)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// 移动无视敌方控制区
|
|
public override bool IsIgnoreZOC()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// 被首次创建时,立刻获得行动机会
|
|
public override void OnAnyUnitCreate(MapData map, IdentifierBase identifier, UnitData newUnit)
|
|
{
|
|
if (identifier != newUnit) return;
|
|
newUnit.SetFullActionPoint();
|
|
}
|
|
}
|
|
}
|