- Fixed the Sacrifice cost list not being set for the AI.

- Added Carapace.
This commit is contained in:
Sloth
2011-12-16 17:26:35 +00:00
parent a8c1d8625f
commit 048f4740b3
4 changed files with 18 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -1185,6 +1185,7 @@ res/cardsfolder/c/captivating_vampire.txt svneol=native#text/plain
res/cardsfolder/c/captive_flame.txt svneol=native#text/plain res/cardsfolder/c/captive_flame.txt svneol=native#text/plain
res/cardsfolder/c/capture_of_jingzhou.txt svneol=native#text/plain res/cardsfolder/c/capture_of_jingzhou.txt svneol=native#text/plain
res/cardsfolder/c/captured_sunlight.txt svneol=native#text/plain res/cardsfolder/c/captured_sunlight.txt svneol=native#text/plain
res/cardsfolder/c/carapace.txt -text
res/cardsfolder/c/carapace_forger.txt svneol=native#text/plain res/cardsfolder/c/carapace_forger.txt svneol=native#text/plain
res/cardsfolder/c/caravan_escort.txt svneol=native#text/plain res/cardsfolder/c/caravan_escort.txt svneol=native#text/plain
res/cardsfolder/c/caravan_hurda.txt svneol=native#text/plain res/cardsfolder/c/caravan_hurda.txt svneol=native#text/plain

View File

@@ -0,0 +1,14 @@
Name:Carapace
ManaCost:G
Types:Enchantment Aura
Text:no text
K:Enchant creature
A:SP$ Attach | Cost$ G | ValidTgts$ Creature | AILogic$ Pump
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | AddToughness$ 2 | Description$ Enchanted creature gets +0/+2.
A:AB$ Regenerate | Cost$ Sac<1/CARDNAME> | Defined$ Enchanted | SpellDescription$ Regenerate enchanted creature.
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/carapace.jpg
SetInfo:HML|Common|http://magiccards.info/scans/en/hl/54.jpg
SetInfo:5ED|Common|http://magiccards.info/scans/en/5e/143.jpg
Oracle:Enchant creature\nEnchanted creature gets +0/+2.\nSacrifice Carapace: Regenerate enchanted creature.
End

View File

@@ -8,4 +8,6 @@ SVar:Blocking:Mode$ Continuous | Affected$ Creature | AddHiddenKeyword$ HIDDEN C
SVar:PlayMain1:TRUE SVar:PlayMain1:TRUE
SVar:Rarity:Common SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/gorilla_war_cry.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/gorilla_war_cry.jpg
SetInfo:ALL|Common|http://magiccards.info/scans/en/ai/108.jpg
Oracle:Cast Gorilla War Cry only during combat before blockers are declared.\nCreatures can't be blocked this turn except by two or more creatures.\nDraw a card at the beginning of the next turn's upkeep.
End End

View File

@@ -125,6 +125,7 @@ public class CostSacrifice extends CostPartWithList {
*/ */
@Override @Override
public final void payAI(final SpellAbility ability, final Card source, final CostPayment payment) { public final void payAI(final SpellAbility ability, final Card source, final CostPayment payment) {
this.addListToHash(ability, "Sacrificed");
for (final Card c : this.getList()) { for (final Card c : this.getList()) {
AllZone.getGameAction().sacrifice(c); AllZone.getGameAction().sacrifice(c);
} }