- Improved castPermanentInMain1 function.

This commit is contained in:
Sloth
2013-04-18 07:27:15 +00:00
parent 97aca3753a
commit 1b093eced3
2 changed files with 2 additions and 3 deletions

View File

@@ -4,7 +4,6 @@ Types:Enchantment Aura
A:SP$ Attach | Cost$ 1 U U | ValidTgts$ Creature.cmcLE2 | TgtPrompt$ Select target creature with converted mana cost 2 or less | AILogic$ GainControl
K:Enchant creature with converted mana cost 2 or less
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | GainControl$ You | Description$ You control enchanted creature.
SVar:PlayMain1:TRUE
SVar:Picture:http://www.wizards.com/global/images/magic/general/threads_of_disloyalty.jpg
Oracle:Enchant creature with converted mana cost 2 or less\nYou control enchanted creature.
SetInfo:BOK Rare

View File

@@ -826,7 +826,7 @@ public class ComputerUtil {
if ("True".equals(card.getSVar("NonStackingEffect")) && card.getController().isCardInPlay(card.getName())) {
return false;
}
if (card.getSVar("PlayMain1").equals("TRUE")) {
if (card.getSVar("PlayMain1").equals("TRUE") && !card.getController().getCreaturesInPlay().isEmpty()) {
return true;
}
if ((card.isCreature() && (ComputerUtil.hasACardGivingHaste(ai)