mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- Fix AI not playing Jhoira in MoJhoSto. (#3160)
This commit is contained in:
@@ -39,11 +39,6 @@ public class PlayAi extends SpellAbilityAi {
|
||||
return false; // prevent infinite loop
|
||||
}
|
||||
|
||||
List<Card> cards = getPlayableCards(sa, ai);
|
||||
if (cards.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (game.getRules().hasAppliedVariant(GameType.MoJhoSto) && source.getName().equals("Jhoira of the Ghitu Avatar")) {
|
||||
// Additional logic for MoJhoSto:
|
||||
// Do not activate Jhoira too early, usually there are few good targets
|
||||
@@ -58,6 +53,12 @@ public class PlayAi extends SpellAbilityAi {
|
||||
if ("Instant".equals(sa.getParam("AnySupportedCard")) && MyRandom.percentTrue(chanceToActivateInst)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
List<Card> cards = getPlayableCards(sa, ai);
|
||||
if (cards.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ("ReplaySpell".equals(logic)) {
|
||||
|
||||
Reference in New Issue
Block a user