Merge branch 'master' into 'master'

- Minor cleanup.

See merge request core-developers/forge!230
This commit is contained in:
Michael Kamensky
2018-02-18 08:59:38 +00:00
2 changed files with 4 additions and 8 deletions

View File

@@ -81,13 +81,9 @@ public class DestroyAi extends SpellAbilityAi {
}
}
if (("Pactivator".equals(logic)) && (havepact)) {
if (
(!ai.getGame().getPhaseHandler().isPlayerTurn(ai)) &&
((ai.getGame().getPhaseHandler().is(PhaseType.END_OF_TURN))
|| (ai.getGame().getPhaseHandler().is(PhaseType.COMBAT_DECLARE_BLOCKERS)))
&&
(ai.getOpponents().get(0).getCreaturesInPlay().size() > 0)
) {
if ((!ai.getGame().getPhaseHandler().isPlayerTurn(ai))
&& ((ai.getGame().getPhaseHandler().is(PhaseType.END_OF_TURN)) || (ai.getGame().getPhaseHandler().is(PhaseType.COMBAT_DECLARE_BLOCKERS)))
&& (ai.getOpponents().get(0).getCreaturesInPlay().size() > 0)) {
ai.getController().chooseTargetsFor(sa);
return true;
}