mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38: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);
|
return CardFactoryUtil.doXMath(game.getCounterAddedThisTurn(cType, parts[2], parts[3], c, player, ctb), expr, c);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ctb instanceof CardTraitBase) {
|
if (l[0].startsWith("ExiledWith")) {
|
||||||
if (l[0].startsWith("ExiledWith")) {
|
return CardFactoryUtil.doXMath(c.getExiledWith(ctb).size(), expr, c);
|
||||||
return CardFactoryUtil.doXMath(c.getExiledWith(ctb).size(), expr, c);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return CardFactoryUtil.xCount(c, s2);
|
return CardFactoryUtil.xCount(c, s2);
|
||||||
|
|||||||
Reference in New Issue
Block a user