It busted the AI
This commit is contained in:
credman0 2018-08-01 17:46:02 -06:00 committed by GitHub
parent 42648c8b1e
commit 618070a848
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -856,11 +856,11 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
@Override
public FilterMana getColorIdentity() {
FilterMana mana = new FilterMana();
mana.setBlack(getManaCost().getText().matches(regexBlack)||color.isBlack());
mana.setBlue(getManaCost().getText().matches(regexBlue)||color.isBlue());
mana.setGreen(getManaCost().getText().matches(regexGreen)||color.isGreen());
mana.setRed(getManaCost().getText().matches(regexRed)||color.isRed());
mana.setWhite(getManaCost().getText().matches(regexWhite)||color.isWhite());
mana.setBlack(getManaCost().getText().matches(regexBlack));
mana.setBlue(getManaCost().getText().matches(regexBlue));
mana.setGreen(getManaCost().getText().matches(regexGreen));
mana.setRed(getManaCost().getText().matches(regexRed));
mana.setWhite(getManaCost().getText().matches(regexWhite));
for (String rule : getRules()) {
rule = rule.replaceAll("(?i)<i.*?</i>", ""); // Ignoring reminder text in italic