- Added the prefix "SVar$" to xCount (formerly only available in AbilityFactory.calculateAmount).

- Fixed another issue with Conclave's Blessing.
This commit is contained in:
Sloth
2012-01-08 09:23:58 +00:00
parent f5dc9ede2b
commit ba0662c8f0
2 changed files with 11 additions and 3 deletions

View File

@@ -4,9 +4,12 @@ Types:Enchantment Aura
Text:no text Text:no text
K:Convoke K:Convoke
A:SP$Attach | Cost$ 3 W | ValidTgts$ Creature | AILogic$ Pump A:SP$Attach | Cost$ 3 W | ValidTgts$ Creature | AILogic$ Pump
S:Mode$ Continuous | Affected$ Card.EnchantedBy | AddToughness$ X | Description$ Enchanted creature gets +0/+2 for each other creature you control. S:Mode$ Continuous | Affected$ Card.AttachedBy+YouCtrl | AddToughness$ X | Description$ Enchanted creature gets +0/+2 for each other creature you control.
SVar:X:SVar$OtherCreats/Twice S:Mode$ Continuous | Affected$ Card.AttachedBy+YouDontCtrl | AddToughness$ Y
SVar:OtherCreats:Count$Valid Creature.YouCtrl/Minus.1 SVar:X:SVar$A/Twice
SVar:A:Count$Valid Creature.YouCtrl/Minus.1
SVar:Y:SVar$B/Twice
SVar:B:Count$Valid Creature.YouCtrl
SVar:Rarity:Common SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/conclaves_blessing.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/conclaves_blessing.jpg
SetInfo:RAV|Common|http://magiccards.info/scans/en/rav/11.jpg SetInfo:RAV|Common|http://magiccards.info/scans/en/rav/11.jpg

View File

@@ -2694,6 +2694,11 @@ public class CardFactoryUtil {
} }
} }
if (l[0].startsWith("SVar$")) {
final String sVar = l[0].replace("SVar$", "");
return CardFactoryUtil.doXMath(xCount(c, c.getSVar(sVar)), m, c);
}
// Manapool // Manapool
if (l[0].contains("ManaPool")) { if (l[0].contains("ManaPool")) {
final String color = l[0].split(":")[1]; final String color = l[0].split(":")[1];