2026-04-10 23:31:35 +08:00

37 lines
815 B
C#

/*
* @Author: 白哉
* @Description: 勇仪突进技能
* @Date: 2026年03月09日
* @Modify:
*/
using System.Collections.Generic;
using RuntimeData;
using MemoryPack;
using UnityEngine;
namespace Logic.Skill
{
public partial class YuugiDashSkill : SkillBase
{
public YuugiDashSkill()
{
IsPermanent = true;
TurnsLimit = 0;
Score = 4;
}
public override SkillType GetSkillType()
{
return SkillType.YuugiDash;
}
public override void OnMove(UnitData self, GridData grid, MapData mapData, MoveType moveType, List<Vector2Int> path = null)
{
if (path == null || path.Count < 4) return;
self.AddOrOverrideSkill(SkillType.YuugiMove, mapData, self.Id);
}
}
}