调整卡牌攻击

- 场上存在卡牌时无法直接攻击敌方玩家
- 取消卡牌攻击敌方玩家高亮显示
- 一回合只能上场一张角色卡
This commit is contained in:
xianyi
2025-08-06 11:35:29 +08:00
parent 80549b8e49
commit f6262481dc
7 changed files with 45 additions and 18 deletions

View File

@@ -186,6 +186,10 @@ namespace TcgEngine
if (target.HasStatus(StatusType.Protected) && !attacker.HasStatus(StatusType.Flying))
return false; //Protected by taunt
// 检查目标玩家场上是否有卡牌,如有则无法直接攻击玩家
if (target.cards_board.Count > 0)
return false; //Cannot attack player when they have cards on board
return true;
}