mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Fixed the Sacrifice cost list not being set for the AI.
- Added Carapace.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
|
||||||
|
|||||||
14
res/cardsfolder/c/carapace.txt
Normal file
14
res/cardsfolder/c/carapace.txt
Normal 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
|
||||||
@@ -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
|
||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user