keyword + animation

This commit is contained in:
SoulliesOfficial
2025-10-27 07:04:34 -04:00
parent c3c4a17440
commit 2906206f0c
40 changed files with 512 additions and 384 deletions

View File

@@ -74,13 +74,13 @@ namespace Continentis.MainGame.Card
return;
}
if (targetCount == 0 || cardData.tags.Contains("TargetSelf")) // 卡牌目标为自身
if (targetCount == 0 || HasKeyword("TargetSelf")) // 卡牌目标为自身
{
valid.Add(user);
invalid.AddRange(characters);
invalid.Remove(user);
}
else if (cardData.tags.Contains("TargetAllies")) // 卡牌目标为友方单位
else if (HasKeyword("TargetAllies")) // 卡牌目标为友方单位
{
if(user.fraction is Fraction.Ally or Fraction.Player)
{
@@ -111,7 +111,7 @@ namespace Continentis.MainGame.Card
}
}
}
else if (cardData.tags.Contains("TargetEnemies")) // 卡牌目标为敌人
else if (HasKeyword("TargetEnemies")) // 卡牌目标为敌人
{
if (user.fraction is Fraction.Ally or Fraction.Player)
{
@@ -155,12 +155,13 @@ namespace Continentis.MainGame.Card
}
}
}
else if(cardData.tags.Contains("TargetAll")) // 卡牌目标为全体
else if(HasKeyword("TargetAll")) // 卡牌目标为全体
{
valid.AddRange(characters);
}
else
{
valid.AddRange(characters);// 默认卡牌目标为所有单位
Debug.Log("No valid target found");
}
}