mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- AI logic support for Urza, Lord High Artificer.
- Minor fix.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user