Commit 39267b47 authored by Michael Kamensky's avatar Michael Kamensky

Merge branch 'master' into 'master'

Fixed a logic error in DigAi which prevented the AI from paying a X cost for Vivien's Arkbow

Closes #988

See merge request core-developers/forge!1649
parents a0904792 e93421d4
......@@ -42,7 +42,9 @@ public class DigAi extends SpellAbilityAi {
if ("Never".equals(sa.getParam("AILogic"))) {
return false;
} else if ("AtOppEndOfTurn".equals(sa.getParam("AILogic"))) {
return game.getPhaseHandler().getNextTurn() == ai && game.getPhaseHandler().is(PhaseType.END_OF_TURN);
if (!(game.getPhaseHandler().getNextTurn() == ai && game.getPhaseHandler().is(PhaseType.END_OF_TURN))) {
return false;
// don't deck yourself
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment