- Improve AI for Tempered Veteran.

This commit is contained in:
Michael Kamensky
2023-05-20 14:38:42 +03:00
parent e3127b4dd5
commit 76753886e7
2 changed files with 8 additions and 1 deletions

View File

@@ -471,6 +471,13 @@ public class CountersPutAi extends CountersAi {
if (sacSelf && c.equals(source)) {
return false;
}
if ("NoCounterOfType".equals(sa.getParam("AILogic"))) {
for (String ctrType : types) {
if (c.getCounters(CounterType.getType(ctrType)) > 0) {
return false;
}
}
}
return sa.canTarget(c) && c.canReceiveCounters(CounterType.getType(type));
}
});

View File

@@ -3,6 +3,6 @@ ManaCost:1 W
Types:Creature Human Knight
PT:1/2
A:AB$ PutCounter | Cost$ W T | CounterType$ P1P1 | CounterNum$ 1 | ValidTgts$ Creature.counters_GE1_P1P1 | TgtPrompt$ Select target creature with a +1/+1 counter | SpellDescription$ Put a +1/+1 counter on target creature with a +1/+1 counter on it.
A:AB$ PutCounter | Cost$ 4 W W T | CounterType$ P1P1 | CounterNum$ 1 | ValidTgts$ Creature | TgtPrompt$ Select target creature | SpellDescription$ Put a +1/+1 counter on target creature.
A:AB$ PutCounter | Cost$ 4 W W T | CounterType$ P1P1 | CounterNum$ 1 | ValidTgts$ Creature | TgtPrompt$ Select target creature | AILogic$ NoCounterOfType | SpellDescription$ Put a +1/+1 counter on target creature.
DeckHas:Ability$Counters
Oracle:{W}, {T}: Put a +1/+1 counter on target creature with a +1/+1 counter on it.\n{4}{W}{W}, {T}: Put a +1/+1 counter on target creature.