mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
Merge branch 'master' into 'master'
- Minor cleanup. See merge request core-developers/forge!230
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user