38 lines
753 B
C#
38 lines
753 B
C#
/*
|
|
* @Author: 白哉
|
|
* @Description:
|
|
* @Date: 2025年04月23日 星期三 21:04:18
|
|
* @Modify:
|
|
*/
|
|
|
|
|
|
using System;
|
|
using RuntimeData;
|
|
|
|
|
|
namespace Logic.Skill
|
|
{
|
|
[Serializable]
|
|
public class AllYTranSportSkill : SkillBase
|
|
{
|
|
public AllYTranSportSkill()
|
|
{
|
|
IsPermanent = true;
|
|
TurnsLimit = 0;
|
|
}
|
|
|
|
public override SkillType GetSkillType()
|
|
{
|
|
return SkillType.ALLYTRANSPORT;
|
|
}
|
|
|
|
public override bool IsCanMoveGiantNearbyGrid(UnitData unit,MapData map)
|
|
{
|
|
foreach(var s in unit.Skills)
|
|
if (s.GetSkillType() == SkillType.ALLYTRANSPORT)
|
|
return true;
|
|
return false;
|
|
}
|
|
|
|
}
|
|
} |