mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
CardTraitBase: add matchesValidParam and use for Trigger
This commit is contained in:
@@ -1846,10 +1846,8 @@ public class AbilityUtils {
|
||||
return CardFactoryUtil.doXMath(game.getCounterAddedThisTurn(cType, parts[2], parts[3], c, player, ctb), expr, c);
|
||||
}
|
||||
|
||||
if (ctb instanceof CardTraitBase) {
|
||||
if (l[0].startsWith("ExiledWith")) {
|
||||
return CardFactoryUtil.doXMath(c.getExiledWith(ctb).size(), expr, c);
|
||||
}
|
||||
if (l[0].startsWith("ExiledWith")) {
|
||||
return CardFactoryUtil.doXMath(c.getExiledWith(ctb).size(), expr, c);
|
||||
}
|
||||
}
|
||||
return CardFactoryUtil.xCount(c, s2);
|
||||
|
||||
Reference in New Issue
Block a user