mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
InputSelectTargets: fix use of isWithSameCardType for GUI
This commit is contained in:
@@ -183,6 +183,12 @@ public final class InputSelectTargets extends InputSyncronizedBase {
|
||||
return false;
|
||||
}
|
||||
|
||||
// If the cards share a card type
|
||||
if (tgt.isWithSameCardType() && lastTarget != null && !card.sharesCardTypeWith(lastTarget)) {
|
||||
showMessage(sa.getHostCard() + " - Cannot target this card (should share a Card type)");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (sa.hasParam("MaxTotalTargetCMC")) {
|
||||
int maxTotalCMC = tgt.getMaxTotalCMC(sa.getHostCard(), sa);
|
||||
if (maxTotalCMC > 0) {
|
||||
|
||||
Reference in New Issue
Block a user