49 lines
1019 B
C#
49 lines
1019 B
C#
/*
|
|
* @Author: 白哉
|
|
* @Description:
|
|
* @Date: 2025年04月23日 星期三 21:04:18
|
|
* @Modify:
|
|
*/
|
|
|
|
|
|
using RuntimeData;
|
|
using System;
|
|
|
|
|
|
namespace Logic.Skill
|
|
{
|
|
[Serializable]
|
|
public class DashSkill : SkillBase
|
|
{
|
|
public bool IsTrigger = false;
|
|
public override void OnTurnStart(UnitData self, MapData mapData)
|
|
{
|
|
IsTrigger = false;
|
|
}
|
|
|
|
public DashSkill()
|
|
{
|
|
IsPermanent = true;
|
|
TurnsLimit = 0;
|
|
Score = 4;
|
|
}
|
|
|
|
public override SkillType GetSkillType()
|
|
{
|
|
return SkillType.DASH;
|
|
}
|
|
|
|
public override void OnMove(UnitData self, GridData grid, MapData mapData, MoveType moveType)
|
|
{
|
|
if (IsTrigger) return;
|
|
base.OnMove(self, grid, mapData,moveType);
|
|
if (moveType == MoveType.ActiveMove)
|
|
{
|
|
self.AP = 1;
|
|
IsTrigger = true;
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
} |