- AI logic support for Urza, Lord High Artificer.

- Minor fix.
This commit is contained in:
Agetian
2019-05-23 21:51:39 +03:00
parent 009909042b
commit 2daf92608c
2 changed files with 4 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
package forge.ai.ability; package forge.ai.ability;
import forge.ai.SpellAbilityAi; import forge.ai.SpellAbilityAi;
import forge.game.phase.PhaseType;
import forge.game.player.Player; import forge.game.player.Player;
import forge.game.player.PlayerActionConfirmMode; import forge.game.player.PlayerActionConfirmMode;
import forge.game.spellability.SpellAbility; import forge.game.spellability.SpellAbility;
@@ -12,6 +13,8 @@ public class ShuffleAi extends SpellAbilityAi {
if (logic.equals("Always")) { if (logic.equals("Always")) {
// We may want to play this for the subability, e.g. Mind's Desire // We may want to play this for the subability, e.g. Mind's Desire
return true; return true;
} else if (logic.equals("OwnMain2")) {
return aiPlayer.getGame().getPhaseHandler().is(PhaseType.MAIN2, aiPlayer);
} }
// not really sure when the compy would use this; maybe only after a // not really sure when the compy would use this; maybe only after a

View File

@@ -5,7 +5,7 @@ PT:1/4
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigUrzaConstruct | TriggerDescription$ When CARDNAME enters the battlefield, create a 0/0 colorless Construct artifact creature token with "This creature gets +1/+1 for each artifact you control." T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigUrzaConstruct | TriggerDescription$ When CARDNAME enters the battlefield, create a 0/0 colorless Construct artifact creature token with "This creature gets +1/+1 for each artifact you control."
SVar:TrigUrzaConstruct:DB$ Token | TokenScript$ c_0_0_a_construct_total_artifacts | TokenOwner$ You | LegacyImage$ c 0 0 a construct total artifacts mh1 SVar:TrigUrzaConstruct:DB$ Token | TokenScript$ c_0_0_a_construct_total_artifacts | TokenOwner$ You | LegacyImage$ c 0 0 a construct total artifacts mh1
A:AB$ Mana | Cost$ tapXType<1/Artifact> | Produced$ U | SpellDescription$ Add {U}. A:AB$ Mana | Cost$ tapXType<1/Artifact> | Produced$ U | SpellDescription$ Add {U}.
A:AB$ Shuffle | Cost$ 5 | Defined$ You | SubAbility$ DBMill | SpellDescription$ Shuffle your library, then exile the top card. Until end of turn, you may cast play that card without paying its mana cost. A:AB$ Shuffle | Cost$ 5 | Defined$ You | AILogic$ OwnMain2 | SubAbility$ DBMill | SpellDescription$ Shuffle your library, then exile the top card. Until end of turn, you may play that card without paying its mana cost.
SVar:DBMill:DB$ Mill | Defined$ You | NumCards$ 1 | Destination$ Exile | RememberMilled$ True | SubAbility$ DBEffect SVar:DBMill:DB$ Mill | Defined$ You | NumCards$ 1 | Destination$ Exile | RememberMilled$ True | SubAbility$ DBEffect
SVar:DBEffect:DB$ Effect | RememberObjects$ RememberedCard | StaticAbilities$ DBPlay | SubAbility$ DBCleanup | ExileOnMoved$ Exile SVar:DBEffect:DB$ Effect | RememberObjects$ RememberedCard | StaticAbilities$ DBPlay | SubAbility$ DBCleanup | ExileOnMoved$ Exile
SVar:DBPlay:Mode$ Continuous | MayPlay$ True | MayPlayWithoutManaCost$ True | EffectZone$ Command | Affected$ Card.IsRemembered | AffectedZone$ Exile | Description$ You may play the exiled card without paying its mana cost. SVar:DBPlay:Mode$ Continuous | MayPlay$ True | MayPlayWithoutManaCost$ True | EffectZone$ Command | Affected$ Card.IsRemembered | AffectedZone$ Exile | Description$ You may play the exiled card without paying its mana cost.