调整卡牌攻击
- 场上存在卡牌时无法直接攻击敌方玩家 - 取消卡牌攻击敌方玩家高亮显示 - 一回合只能上场一张角色卡
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user