mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Add very basic logic for Divine Reckoning
This commit is contained in:
@@ -115,6 +115,13 @@ public class RepeatEachAi extends SpellAbilityAi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
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
|
// TODO Add some normal AI variability here
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ Name:Divine Reckoning
|
|||||||
ManaCost:2 W W
|
ManaCost:2 W W
|
||||||
Types:Sorcery
|
Types:Sorcery
|
||||||
K:Flashback 5 W W
|
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:DBChoose:DB$ ChooseCard | Defined$ Remembered | Amount$ 1 | Choices$ Creature.RememberedPlayerCtrl | Mandatory$ True | RememberChosen$ True
|
||||||
SVar:DBDestroyAll:DB$ DestroyAll | ValidCards$ Creature.IsNotRemembered | SubAbility$ DBCleanup
|
SVar:DBDestroyAll:DB$ DestroyAll | ValidCards$ Creature.IsNotRemembered | SubAbility$ DBCleanup
|
||||||
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
|
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
|
||||||
|
|||||||
Reference in New Issue
Block a user