37 lines
815 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
|