mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- AF ChangeZone Hidden is a little more flexible now.
- Added Entrails Feaster by Jeff.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -2655,6 +2655,7 @@ res/cardsfolder/e/entangling_trap.txt svneol=native#text/plain
|
|||||||
res/cardsfolder/e/entangling_vines.txt svneol=native#text/plain
|
res/cardsfolder/e/entangling_vines.txt svneol=native#text/plain
|
||||||
res/cardsfolder/e/entomb.txt svneol=native#text/plain
|
res/cardsfolder/e/entomb.txt svneol=native#text/plain
|
||||||
res/cardsfolder/e/entomber_exarch.txt -text
|
res/cardsfolder/e/entomber_exarch.txt -text
|
||||||
|
res/cardsfolder/e/entrails_feaster.txt -text
|
||||||
res/cardsfolder/e/entropic_eidolon.txt svneol=native#text/plain
|
res/cardsfolder/e/entropic_eidolon.txt svneol=native#text/plain
|
||||||
res/cardsfolder/e/entropic_specter.txt svneol=native#text/plain
|
res/cardsfolder/e/entropic_specter.txt svneol=native#text/plain
|
||||||
res/cardsfolder/e/envelop.txt svneol=native#text/plain
|
res/cardsfolder/e/envelop.txt svneol=native#text/plain
|
||||||
|
|||||||
14
res/cardsfolder/e/entrails_feaster.txt
Normal file
14
res/cardsfolder/e/entrails_feaster.txt
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
Name:Entrails Feaster
|
||||||
|
ManaCost:B
|
||||||
|
Types:Creature Zombie Cat
|
||||||
|
Text:no text
|
||||||
|
PT:1/1
|
||||||
|
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | Execute$ TrigExile | TriggerZones$ Battlefield | TriggerDescription$ At the beginning of your upkeep, you may exile a creature card from a graveyard. If you do, put a +1/+1 counter on CARDNAME. If you don't, tap CARDNAME.
|
||||||
|
SVar:TrigExile:AB$ ChangeZone | Cost$ 0 | ChangeType$ Creature | ChangeNum$ 1 | Origin$ Graveyard | Destination$ Exile | Optional$ True | IsCurse$ True | RememberChanged$ True | Hidden$ True | Chooser$ You | SubAbility$ DBPutCounter
|
||||||
|
SVar:DBPutCounter:DB$ PutCounter | Defined$ Self | CounterNum$ 1 | CounterType$ P1P1 | ConditionCheckSVar$ X | ConditionSVarCompare$ GE1 | SubAbility$ DBTap
|
||||||
|
SVar:DBTap:DB$ Tap | ConditionCheckSVar$ X | ConditionSVarCompare$ LE0 | SubAbility$ DBCleanup
|
||||||
|
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
|
||||||
|
SVar:X:Remembered$Amount
|
||||||
|
SVar:Rarity:Rare
|
||||||
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/entrails_feaster.jpg
|
||||||
|
End
|
||||||
@@ -819,6 +819,8 @@ public final class AbilityFactoryChangeZone {
|
|||||||
CardList fetchList;
|
CardList fetchList;
|
||||||
if (defined) {
|
if (defined) {
|
||||||
fetchList = new CardList(AbilityFactory.getDefinedCards(card, params.get("Defined"), sa));
|
fetchList = new CardList(AbilityFactory.getDefinedCards(card, params.get("Defined"), sa));
|
||||||
|
} else if (!origin.contains(Zone.Library) && !origin.contains(Zone.Hand)){
|
||||||
|
fetchList = AllZoneUtil.getCardsIn(origin);
|
||||||
} else {
|
} else {
|
||||||
fetchList = player.getCardsIn(origin);
|
fetchList = player.getCardsIn(origin);
|
||||||
}
|
}
|
||||||
@@ -912,11 +914,13 @@ public final class AbilityFactoryChangeZone {
|
|||||||
}
|
}
|
||||||
|
|
||||||
movedCard = AllZone.getGameAction().moveTo(c.getController().getZone(destination), c);
|
movedCard = AllZone.getGameAction().moveTo(c.getController().getZone(destination), c);
|
||||||
} else {
|
} else if(destination.equals(Zone.Exile)) {
|
||||||
movedCard = AllZone.getGameAction().moveTo(destZone, c);
|
movedCard = AllZone.getGameAction().exile(c);
|
||||||
if (params.containsKey("ExileFaceDown")) {
|
if (params.containsKey("ExileFaceDown")) {
|
||||||
movedCard.setState("FaceDown");
|
movedCard.setState("FaceDown");
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
movedCard = AllZone.getGameAction().moveTo(destZone, c);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (remember != null) {
|
if (remember != null) {
|
||||||
@@ -984,6 +988,9 @@ public final class AbilityFactoryChangeZone {
|
|||||||
CardList fetchList;
|
CardList fetchList;
|
||||||
if (defined) {
|
if (defined) {
|
||||||
fetchList = new CardList(AbilityFactory.getDefinedCards(card, params.get("Defined"), sa));
|
fetchList = new CardList(AbilityFactory.getDefinedCards(card, params.get("Defined"), sa));
|
||||||
|
} else if (!origin.contains(Zone.Library) && !origin.contains(Zone.Hand)){
|
||||||
|
fetchList = AllZoneUtil.getCardsIn(origin);
|
||||||
|
fetchList = AbilityFactory.filterListByType(fetchList, type, sa);
|
||||||
} else {
|
} else {
|
||||||
fetchList = player.getCardsIn(origin);
|
fetchList = player.getCardsIn(origin);
|
||||||
fetchList = AbilityFactory.filterListByType(fetchList, type, sa);
|
fetchList = AbilityFactory.filterListByType(fetchList, type, sa);
|
||||||
@@ -1095,11 +1102,13 @@ public final class AbilityFactoryChangeZone {
|
|||||||
}
|
}
|
||||||
|
|
||||||
newCard = AllZone.getGameAction().moveTo(c.getController().getZone(destination), c);
|
newCard = AllZone.getGameAction().moveTo(c.getController().getZone(destination), c);
|
||||||
} else {
|
} else if(destination.equals(Zone.Exile)) {
|
||||||
newCard = AllZone.getGameAction().moveTo(destZone, c);
|
newCard = AllZone.getGameAction().exile(c);
|
||||||
if (params.containsKey("ExileFaceDown")) {
|
if (params.containsKey("ExileFaceDown")) {
|
||||||
newCard.setState("FaceDown");
|
newCard.setState("FaceDown");
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
newCard = AllZone.getGameAction().moveTo(destZone, c);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (remember != null) {
|
if (remember != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user