This commit is contained in:
MuHua-123
2025-07-22 17:56:04 +08:00
parent 1adce62b71
commit 8ebd3864c6
3 changed files with 22 additions and 3 deletions
@@ -34,4 +34,9 @@ public class BattleCharacter : DataAttribute {
hitPoint = new Vector2Int(character.HitPoint, character.HitPoint);
armorClass = character.ArmorClass;
}
/// <summary> 攻击目标 </summary>
public bool AttackTarget(BattleCharacter target) {
return team != target.team && target.hitPoint.x > 0;
}
}