mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Improved castPermanentInMain1 function.
This commit is contained in:
@@ -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
|
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
|
K:Enchant creature with converted mana cost 2 or less
|
||||||
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | GainControl$ You | Description$ You control enchanted creature.
|
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
|
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.
|
Oracle:Enchant creature with converted mana cost 2 or less\nYou control enchanted creature.
|
||||||
SetInfo:BOK Rare
|
SetInfo:BOK Rare
|
||||||
@@ -826,7 +826,7 @@ public class ComputerUtil {
|
|||||||
if ("True".equals(card.getSVar("NonStackingEffect")) && card.getController().isCardInPlay(card.getName())) {
|
if ("True".equals(card.getSVar("NonStackingEffect")) && card.getController().isCardInPlay(card.getName())) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (card.getSVar("PlayMain1").equals("TRUE")) {
|
if (card.getSVar("PlayMain1").equals("TRUE") && !card.getController().getCreaturesInPlay().isEmpty()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if ((card.isCreature() && (ComputerUtil.hasACardGivingHaste(ai)
|
if ((card.isCreature() && (ComputerUtil.hasACardGivingHaste(ai)
|
||||||
@@ -837,7 +837,7 @@ public class ComputerUtil {
|
|||||||
if (card.isEquipment()) {
|
if (card.isEquipment()) {
|
||||||
boolean playNow = false;
|
boolean playNow = false;
|
||||||
for (Card c : card.getController().getCardsIn(ZoneType.Battlefield)) {
|
for (Card c : card.getController().getCardsIn(ZoneType.Battlefield)) {
|
||||||
if (c.isEquipment() && ! c.isEquipping()) {
|
if (c.isEquipment() && !c.isEquipping()) {
|
||||||
playNow = false;
|
playNow = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user