From 2ae162ce9ecefe94bff018620a60e1f4852179c6 Mon Sep 17 00:00:00 2001 From: jendave Date: Sun, 7 Aug 2011 00:16:04 +0000 Subject: [PATCH] - Fix Bug with Lead the Stampede being played by AI --- src/forge/card/abilityFactory/AbilityFactory_Reveal.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/forge/card/abilityFactory/AbilityFactory_Reveal.java b/src/forge/card/abilityFactory/AbilityFactory_Reveal.java index e594ecba5a4..66d678e9819 100644 --- a/src/forge/card/abilityFactory/AbilityFactory_Reveal.java +++ b/src/forge/card/abilityFactory/AbilityFactory_Reveal.java @@ -159,9 +159,9 @@ public class AbilityFactory_Reveal { return false; //currently to restrict everything except Mulch - if(!params.get("ChangeNum").equalsIgnoreCase("All")) return false; + String changeNum = params.get("ChangeNum"); + if (changeNum != null && !changeNum.equalsIgnoreCase("All")) return false; - double chance = .4; // 40 percent chance with instant speed stuff if (AbilityFactory.isSorcerySpeed(sa)) chance = .667; // 66.7% chance for sorcery speed (since it will never activate EOT)