恢复卡槽可选

This commit is contained in:
xianyi
2025-08-20 16:16:27 +08:00
parent f0c1643f30
commit b215788256
5 changed files with 17 additions and 21 deletions

View File

@@ -57,14 +57,14 @@ namespace TcgEngine.Client
//Find target opacity value
target_alpha = 0f;
if (your_turn && dcard != null && dcard.CardData.IsBoardCard() && gdata.CanPlayCard(dcard, slot, true))
if (your_turn && dcard != null && dcard.CardData.IsBoardCard() && gdata.CanPlayCard(dcard, slot))
{
target_alpha = 1f; //hightlight when dragging a character or artifact (skip mana cost)
target_alpha = 1f; //hightlight when dragging a character or artifact
}
if (your_turn && dcard != null && dcard.CardData.IsRequireTarget() && gdata.CanPlayCard(dcard, slot, true))
if (your_turn && dcard != null && dcard.CardData.IsRequireTarget() && gdata.CanPlayCard(dcard, slot))
{
target_alpha = 1f; //Highlight when dragin a spell with target (skip mana cost)
target_alpha = 1f; //Highlight when dragin a spell with target
}
if (gdata.selector == SelectorType.SelectTarget && player.player_id == gdata.selector_player_id)