mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Added support for targeting and Defined parameter in AF AnimateAll.
- Little fixed in AF AnimateAll. - Cleanup of Ego Erasure and Shields of Velis Vel.
This commit is contained in:
@@ -3,8 +3,8 @@ ManaCost:2 U
|
|||||||
Types:Tribal Instant Shapeshifter
|
Types:Tribal Instant Shapeshifter
|
||||||
Text:no text
|
Text:no text
|
||||||
S:Mode$ Continuous | Affected$ Card.Self | CharacteristicDefining$ True | AddType$ AllCreatureTypes | Description$ Changeling (This card is every creature type at all times.)
|
S:Mode$ Continuous | Affected$ Card.Self | CharacteristicDefining$ True | AddType$ AllCreatureTypes | Description$ Changeling (This card is every creature type at all times.)
|
||||||
A:SP$ PumpAll | Cost$ 2 U | ValidTgts$ Player | TgtPrompt$ Select target player | ValidCards$ Creature | NumAtt$ -2 | NumDef$ -0 | IsCurse$ True | SubAbility$ SVar=DBAnimateAll |SpellDescription$ Creatures target player controls get -2/-0 and lose all creature types until end of turn.
|
A:SP$ PumpAll | Cost$ 2 U | ValidTgts$ Player | TgtPrompt$ Select target player | ValidCards$ Creature | NumAtt$ -2 | NumDef$ -0 | IsCurse$ True | SubAbility$ DBAnimateAll | SpellDescription$ Creatures target player controls get -2/-0 and lose all creature types until end of turn.
|
||||||
SVar:DBAnimateAll:DB$ AnimateAll | Cost$ 0 | Defined$ Targeted | ValidCards$ Creature | Types$ Creature | RemoveCreatureTypes$ True
|
SVar:DBAnimateAll:DB$ AnimateAll | Cost$ 0 | Defined$ Targeted | RemoveCreatureTypes$ True
|
||||||
SVar:Rarity:Uncommon
|
SVar:Rarity:Uncommon
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/ego_erasure.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/ego_erasure.jpg
|
||||||
SetInfo:LRW|Uncommon|http://magiccards.info/scans/en/lw/59.jpg
|
SetInfo:LRW|Uncommon|http://magiccards.info/scans/en/lw/59.jpg
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import forge.CardUtil;
|
|||||||
import forge.Command;
|
import forge.Command;
|
||||||
import forge.ComputerUtil;
|
import forge.ComputerUtil;
|
||||||
import forge.Constant;
|
import forge.Constant;
|
||||||
|
import forge.Player;
|
||||||
|
|
||||||
import forge.Constant.Zone;
|
import forge.Constant.Zone;
|
||||||
import forge.card.spellability.Ability_Activated;
|
import forge.card.spellability.Ability_Activated;
|
||||||
@@ -665,7 +666,7 @@ public final class AbilityFactory_Animate {
|
|||||||
c.addNewPT(power, toughness, timestamp);
|
c.addNewPT(power, toughness, timestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!types.isEmpty() || !removeTypes.isEmpty()) {
|
if (!types.isEmpty() || !removeTypes.isEmpty() || removeCreatureTypes) {
|
||||||
c.addChangedCardTypes(types, removeTypes, removeSuperTypes, removeCardTypes, removeSubTypes,
|
c.addChangedCardTypes(types, removeTypes, removeSuperTypes, removeCardTypes, removeSubTypes,
|
||||||
removeCreatureTypes, timestamp);
|
removeCreatureTypes, timestamp);
|
||||||
}
|
}
|
||||||
@@ -712,7 +713,7 @@ public final class AbilityFactory_Animate {
|
|||||||
c.setStaticAbilities(new ArrayList<StaticAbility>());
|
c.setStaticAbilities(new ArrayList<StaticAbility>());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (params.containsKey("Types")) {
|
if (params.containsKey("Types") || params.containsKey("RemoveTypes") || params.containsKey("RemoveCreatureTypes")) {
|
||||||
c.removeChangedCardTypes(timestamp);
|
c.removeChangedCardTypes(timestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1035,7 +1036,20 @@ public final class AbilityFactory_Animate {
|
|||||||
valid = params.get("ValidCards");
|
valid = params.get("ValidCards");
|
||||||
}
|
}
|
||||||
|
|
||||||
CardList list = AllZoneUtil.getCardsIn(Zone.Battlefield);
|
CardList list;
|
||||||
|
ArrayList<Player> tgtPlayers = null;
|
||||||
|
|
||||||
|
Target tgt = af.getAbTgt();
|
||||||
|
if (tgt != null)
|
||||||
|
tgtPlayers = tgt.getTargetPlayers();
|
||||||
|
else if (params.containsKey("Defined")) // Make sure Defined exists to use it
|
||||||
|
tgtPlayers = AbilityFactory.getDefinedPlayers(sa.getSourceCard(), params.get("Defined"), sa);
|
||||||
|
|
||||||
|
if (tgtPlayers == null || tgtPlayers.isEmpty())
|
||||||
|
list = AllZoneUtil.getCardsIn(Zone.Battlefield);
|
||||||
|
else
|
||||||
|
list = tgtPlayers.get(0).getCardsIn(Zone.Battlefield);
|
||||||
|
|
||||||
list = list.getValidCards(valid.split(","), host.getController(), host);
|
list = list.getValidCards(valid.split(","), host.getController(), host);
|
||||||
|
|
||||||
for (final Card c : list) {
|
for (final Card c : list) {
|
||||||
|
|||||||
Reference in New Issue
Block a user