38 lines
800 B
C#
38 lines
800 B
C#
/*
|
|
* @Author: 白哉
|
|
* @Description:
|
|
* @Date: 2025年10月12日 星期六 10:10:12
|
|
* @Modify:
|
|
*/
|
|
|
|
|
|
using System;
|
|
using MemoryPack;
|
|
using RuntimeData;
|
|
using TH1_Logic.Core;
|
|
|
|
|
|
namespace Logic.Skill
|
|
{
|
|
public partial class MeilingCounterSkill : SkillBase
|
|
{
|
|
public MeilingCounterSkill()
|
|
{
|
|
IsPermanent = true;
|
|
TurnsLimit = 0;
|
|
Score = 2;
|
|
}
|
|
|
|
public override SkillType GetSkillType()
|
|
{
|
|
return SkillType.MEILINGCOUNTER;
|
|
}
|
|
|
|
public override void AfterActiveAttacked(MapData mapData, UnitData origin, UnitData target)
|
|
{
|
|
if (origin.Health <= 0 || target.Health <= 0) return;
|
|
Main.UnitLogic.Attack(mapData, target, origin, out _, out _, out _);
|
|
}
|
|
}
|
|
}
|