- Add very basic logic for Divine Reckoning

This commit is contained in:
Sol
2016-10-01 02:26:17 +00:00
parent 5ddd2a7fff
commit 76c4a7725e
2 changed files with 8 additions and 1 deletions

View File

@@ -115,6 +115,13 @@ public class RepeatEachAi extends SpellAbilityAi {
}
}
return false;
} else if ("OpponentHasMultipleCreatures".equals(logic)) {
for (Player opp : aiPlayer.getOpponents()) {
if (opp.getCreaturesInPlay().size() > 1){
return true;
}
}
return false;
}
// TODO Add some normal AI variability here

View File

@@ -2,7 +2,7 @@ Name:Divine Reckoning
ManaCost:2 W W
Types:Sorcery
K:Flashback 5 W W
A:SP$ RepeatEach | Cost$ 2 W W | RepeatPlayers$ Player | RepeatSubAbility$ DBChoose | SubAbility$ DBDestroyAll | SpellDescription$ Each player chooses a creature he or she controls. Destroy the rest.
A:SP$ RepeatEach | Cost$ 2 W W | AILogic$ OpponentHasMultipleCreatures | RepeatPlayers$ Player | RepeatSubAbility$ DBChoose | SubAbility$ DBDestroyAll | SpellDescription$ Each player chooses a creature he or she controls. Destroy the rest.
SVar:DBChoose:DB$ ChooseCard | Defined$ Remembered | Amount$ 1 | Choices$ Creature.RememberedPlayerCtrl | Mandatory$ True | RememberChosen$ True
SVar:DBDestroyAll:DB$ DestroyAll | ValidCards$ Creature.IsNotRemembered | SubAbility$ DBCleanup
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True