Special case for Null Brooch because it needs to be used even though its cost has a "discard".

This commit is contained in:
Seravy
2018-02-13 14:59:15 +01:00
parent b5dbb7da90
commit 3e5b47185e

View File

@@ -215,6 +215,16 @@ public class CounterAi extends SpellAbilityAi {
dontCounter = false;
}
// Null Brooch is special - it has a discard cost, but the AI will be
// discarding no cards, or is playing a deck where discarding is a benefit
// as defined in SpecialCardAi.NullBrooch
if (sa.hasParam("AILogic")) {
if ("NullBooch".equals(sa.getParam("AILogic"))) {
dontCounter = false;
}
;
}
if (dontCounter) {
return false;
}