Files
SVSimServer/SVSim.BattleEngine/Engine/SetHealModifierInfo.cs
gamer147 824309ec44 feat(battle-engine): close the AI-simulation subsystem (verbatim)
Copied the 89 uncopied AI*SimulationUtility/extension files defining the
AIVirtualCard/AIVirtualField extension methods; the compile loop then auto-closed
the revealed type deps (~3049 files total, drift-clean). 10.0k -> 62 errors.
2026-06-05 20:30:59 -04:00

28 lines
650 B
C#

public class SetHealModifierInfo : HealModifier
{
private bool _isTargetSelfClass;
public int SetHealAmount { get; private set; }
public SetHealModifierInfo(int setHealAmount, int order, BattleCardBase owner, bool isTargetSelfClass)
{
SetHealAmount = setHealAmount;
base.OrderCount = order;
_owner = owner;
_isTargetSelfClass = isTargetSelfClass;
}
public override int Calc(int healAmount, BattleCardBase healOwner, BattleCardBase target)
{
if (_isTargetSelfClass)
{
if (target.IsClass && _owner == target)
{
return SetHealAmount;
}
return healAmount;
}
return SetHealAmount;
}
}