From d2911a6f8fd46c677051b2db203f5614f9d40ee4 Mon Sep 17 00:00:00 2001 From: Sloth Date: Sun, 3 Mar 2013 22:27:18 +0000 Subject: [PATCH] - Improved AI using Show and Tell and Eureka. --- res/cardsfolder/e/eureka.txt | 3 ++- res/cardsfolder/h/hypergenesis.txt | 3 ++- res/cardsfolder/s/show_and_tell.txt | 2 ++ src/main/java/forge/card/ability/ai/ChangeZoneAi.java | 2 -- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/res/cardsfolder/e/eureka.txt b/res/cardsfolder/e/eureka.txt index eb67b5629fb..31eceae5f5c 100644 --- a/res/cardsfolder/e/eureka.txt +++ b/res/cardsfolder/e/eureka.txt @@ -14,8 +14,9 @@ SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True SVar:NumPlayerGiveup:Number$0 SVar:TotalPlayer:PlayerCountPlayers$Amount SVar:CheckHand:Count$ValidHand Permanent.IsNotRemembered+RememberedPlayerCtrl -SVar:RemAIDeck:True SVar:RemRandomDeck:True +SVar:NeedsToPlayVar:Y GE1 +SVar:Y:Count$ValidHand Permanent.YouCtrl+cmcGE5 SVar:Picture:http://www.wizards.com/global/images/magic/general/eureka.jpg SetInfo:LEG|Rare|http://magiccards.info/scans/en/lg/99.jpg Oracle:Starting with you, each player may put a permanent card from his or her hand onto the battlefield. Repeat this process until no one puts a card onto the battlefield. diff --git a/res/cardsfolder/h/hypergenesis.txt b/res/cardsfolder/h/hypergenesis.txt index 94ca133900b..2cf2f6651ec 100644 --- a/res/cardsfolder/h/hypergenesis.txt +++ b/res/cardsfolder/h/hypergenesis.txt @@ -17,7 +17,8 @@ SVar:NumPlayerGiveup:Number$0 SVar:TotalPlayer:PlayerCountPlayers$Amount SVar:CheckHand:Count$ValidHand Artifact.IsNotRemembered+RememberedPlayerCtrl,Creature.IsNotRemembered+RememberedPlayerCtrl,Enchantment.IsNotRemembered+RememberedPlayerCtrl,Land.IsNotRemembered+RememberedPlayerCtrl SVar:RemRandomDeck:True -SVar:RemAIDeck:True +SVar:NeedsToPlayVar:Y GE1 +SVar:Y:Count$ValidHand Permanent.YouCtrl+cmcGE5 SVar:Picture:http://www.wizards.com/global/images/magic/general/hypergenesis.jpg SetInfo:TSP|Rare|http://magiccards.info/scans/en/ts/201.jpg Oracle:Sorcery\nSuspend 3- {1}{G}{G} (Rather than cast this card from your hand, pay {1}{G}{G} and exile it with three time counters on it. At the beginning of your upkeep, remove a time counter. When the last is removed, cast it without paying its mana cost.)\nStarting with you, each player may put an artifact, creature, enchantment, or land card from his or her hand onto the battlefield. Repeat this process until no one puts a card onto the battlefield. diff --git a/res/cardsfolder/s/show_and_tell.txt b/res/cardsfolder/s/show_and_tell.txt index ef824c8cc15..67b753e3ca3 100644 --- a/res/cardsfolder/s/show_and_tell.txt +++ b/res/cardsfolder/s/show_and_tell.txt @@ -2,6 +2,8 @@ Name:Show and Tell ManaCost:2 U Types:Sorcery A:SP$ ChangeZone | Cost$ 2 U | Origin$ Hand | Destination$ Battlefield | ChangeType$ Creature,Artifact,Enchantment,Land | DefinedPlayer$ Player | ChangeNum$ 1 | SpellDescription$ Each player may put an artifact, creature, enchantment, or land card from his or her hand onto the battlefield. +SVar:NeedsToPlayVar:Y GE1 +SVar:Y:Count$ValidHand Permanent.YouCtrl+cmcGE4 SVar:Rarity:Rare SVar:Picture:http://www.wizards.com/global/images/magic/general/show_and_tell.jpg SetInfo:USG|Rare|http://magiccards.info/scans/en/us/96.jpg diff --git a/src/main/java/forge/card/ability/ai/ChangeZoneAi.java b/src/main/java/forge/card/ability/ai/ChangeZoneAi.java index acd6aacbcfc..7ae758ddf9c 100644 --- a/src/main/java/forge/card/ability/ai/ChangeZoneAi.java +++ b/src/main/java/forge/card/ability/ai/ChangeZoneAi.java @@ -294,8 +294,6 @@ public class ChangeZoneAi extends SpellAbilityAi { } } - chance &= (r.nextFloat() < .8); - final AbilitySub subAb = sa.getSubAbility(); chance &= subAb == null || subAb.getAi().chkDrawbackWithSubs(ai, subAb);