TH1/Unity/Assets/Scripts/TH1_Logic/Skill/AllSkill/HouraisanFrenchWolfMoonSkill.cs
2026-06-01 14:26:25 +08:00

44 lines
1.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* @Author: Claude
* @Description: 蓬莱山法国狼月技能 - 单位首次通过城市或军营训练出来时自带5层KaguyaFrenchForeverBuff持续1回合
* @Date: 2026年04月19日
* @Modify:
*/
using RuntimeData;
using MemoryPack;
namespace Logic.Skill
{
public partial class HouraisanFrenchWolfMoonSkill : SkillBase
{
public HouraisanFrenchWolfMoonSkill()
{
IsPermanent = true;
TurnsLimit = 0;
Score = 4;
}
public override SkillType GetSkillType()
{
return SkillType.HouraisanFrenchWolfMoon;
}
public override void OnSkillAdd(MapData mapData, uint originId)
{
base.OnSkillAdd(mapData, originId);
}
public override void OnSelfCreated(MapData mapData, UnitData self)
{
// 单位首次训练出来时添加5层KaguyaFrenchForeverBuff持续1回合
self?.AddSkill_Legacy(SkillType.KAGUYAFRENCHFOREVERBUFF, mapData, false, 1, true, 5, false, SpecialAddSkillType.Normal, self.Id);
}
public override bool ReservedOnTransform(UnitData self, UnitFullType fullType)
{
return true;
}
}
}