调整卡牌攻击
- 场上存在卡牌时无法直接攻击敌方玩家 - 取消卡牌攻击敌方玩家高亮显示 - 一回合只能上场一张角色卡
This commit is contained in:
@@ -303,7 +303,18 @@ namespace TcgEngine.Server
|
||||
{
|
||||
Card card = player.GetCard(msg.card_uid);
|
||||
if (card != null && card.player_id == player.player_id)
|
||||
{
|
||||
// 检查本回合是否已经上场过场上卡牌(只有怪物牌等场上卡牌受限制)
|
||||
if (card.CardData.IsBoardCard() && player.cards_played_this_turn >= 1)
|
||||
return; // 已经上场过场上卡牌,不能再上场
|
||||
|
||||
// 手动上场卡牌:跳过mana消耗
|
||||
// gameplay.PlayCard(card, msg.slot, true);
|
||||
gameplay.PlayCard(card, msg.slot);
|
||||
// 只有场上卡牌才增加计数
|
||||
if (card.CardData.IsBoardCard())
|
||||
player.cards_played_this_turn++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user