mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
Merge branch 'master' into 'master'
Fix a logic error in TapAllAi See merge request core-developers/forge!1867
This commit is contained in:
@@ -24,8 +24,7 @@ import java.util.List;
|
||||
public class TapAllAi extends SpellAbilityAi {
|
||||
@Override
|
||||
protected boolean canPlayAI(final Player ai, SpellAbility sa) {
|
||||
// If tapping all creatures do it either during declare attackers of AIs
|
||||
// turn
|
||||
// If tapping all creatures do it either during declare attackers of AIs turn
|
||||
// or during upkeep/begin combat?
|
||||
|
||||
final Card source = sa.getHostCard();
|
||||
@@ -86,7 +85,7 @@ public class TapAllAi extends SpellAbilityAi {
|
||||
return false;
|
||||
}
|
||||
// in AI's turn, check if there are possible attackers, before tapping blockers
|
||||
if (game.getPhaseHandler().isPlayerTurn(ai) && !SpellAbilityAi.isSorcerySpeed(sa)) {
|
||||
if (game.getPhaseHandler().isPlayerTurn(ai)) {
|
||||
validTappables = ai.getCardsIn(ZoneType.Battlefield);
|
||||
final boolean any = Iterables.any(validTappables, new Predicate<Card>() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user