mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- Fixed the AI cheating with Plague Belcher by ignoring its triggered ETB ability.
This commit is contained in:
@@ -707,6 +707,13 @@ public class CountersPutAi extends SpellAbilityAi {
|
|||||||
list = CardLists.getTargetableCards(ai.getOpponents().getCardsIn(ZoneType.Battlefield), sa);
|
list = CardLists.getTargetableCards(ai.getOpponents().getCardsIn(ZoneType.Battlefield), sa);
|
||||||
preferred = false;
|
preferred = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (list.isEmpty()) {
|
||||||
|
// Still an empty list, but we have to choose something (mandatory); expand targeting to
|
||||||
|
// include AI's own cards to see if there's anything targetable (e.g. Plague Belcher).
|
||||||
|
list = CardLists.getTargetableCards(ai.getCardsIn(ZoneType.Battlefield), sa);
|
||||||
|
preferred = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (list.isEmpty()) {
|
if (list.isEmpty()) {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ Types:Creature Zombie Beast
|
|||||||
PT:5/4
|
PT:5/4
|
||||||
K:Menace
|
K:Menace
|
||||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigPutCounter | TriggerDescription$ When CARDNAME enters the battlefield, put two -1/-1 counters on target creature you control.
|
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigPutCounter | TriggerDescription$ When CARDNAME enters the battlefield, put two -1/-1 counters on target creature you control.
|
||||||
SVar:TrigPutCounter:DB$ PutCounter | Cost$ 0 | ValidTgts$ Creature.YouCtrl | TgtPrompt$ Select target creature you control | CounterType$ M1M1 | IsCurse$ True | CounterNum$ 2
|
SVar:TrigPutCounter:DB$ PutCounter | ValidTgts$ Creature.YouCtrl | TgtPrompt$ Select target creature you control | CounterType$ M1M1 | IsCurse$ True | CounterNum$ 2
|
||||||
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Zombie.YouCtrl+Other | TriggerZones$ Battlefield | Execute$ TrigLoseLife | TriggerDescription$ Whenever another Zombie you control dies, each opponent loses 1 life.
|
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Zombie.YouCtrl+Other | TriggerZones$ Battlefield | Execute$ TrigLoseLife | TriggerDescription$ Whenever another Zombie you control dies, each opponent loses 1 life.
|
||||||
SVar:TrigLoseLife:DB$ LoseLife | Defined$ Player.Opponent | LifeAmount$ 1
|
SVar:TrigLoseLife:DB$ LoseLife | Defined$ Player.Opponent | LifeAmount$ 1
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/plague_belcher.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/plague_belcher.jpg
|
||||||
|
|||||||
Reference in New Issue
Block a user