mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Special case for Null Brooch because it needs to be used even though its cost has a "discard".
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user