mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Converted Overwhelming Forces to script.
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
Name:Overwhelming Forces
|
||||
ManaCost:6 B B
|
||||
Types:Sorcery
|
||||
Text:Destroy all creatures target opponent controls. Draw a card for each creature destroyed this way.
|
||||
Text:no text
|
||||
A:SP$ DestroyAll | Cost$ 6 B B | ValidCards$ Creature.YouDontCtrl | RememberDestroyed$ True | SubAbility$ SVar=DBDrawCard | SpellDescription$ Destroy all creatures target opponent controls. Draw a card for each creature destroyed this way.
|
||||
SVar:DBDrawCard:DB$Draw | NumCards$ X
|
||||
SVar:X:Remembered$Amount
|
||||
SVar:Rarity:Rare
|
||||
SVar:Picture:http://serv3.tcgimages.eu/img/cards/Portal_Three_Kingdoms/overwhelming_forces.jpg
|
||||
SetInfo:PTK|Rare|http://magiccards.info/scans/en/p3k/79.jpg
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/overwhelming_forces.jpg
|
||||
End
|
||||
@@ -1527,44 +1527,6 @@ public class CardFactory_Sorceries {
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Overwhelming Forces")) {
|
||||
final SpellAbility spell = new Spell(card) {
|
||||
private static final long serialVersionUID = -7165356050118574287L;
|
||||
|
||||
@Override
|
||||
public void resolve() {
|
||||
Player opponent = card.getController().getOpponent();
|
||||
PlayerZone play = AllZone.getZone(Constant.Zone.Battlefield, opponent);
|
||||
|
||||
CardList all = new CardList(play.getCards());
|
||||
all = all.getType("Creature");
|
||||
|
||||
for(int i = 0; i < all.size(); i++) {
|
||||
Card c = all.get(i);
|
||||
if(c.isCreature()) AllZone.GameAction.destroy(c);
|
||||
card.getController().drawCard();
|
||||
}
|
||||
}//resolve()
|
||||
|
||||
@Override
|
||||
public boolean canPlayAI() {
|
||||
CardList human = new CardList(AllZone.Human_Battlefield.getCards());
|
||||
|
||||
human = human.getType("Creature");
|
||||
human = human.getNotKeyword("Indestructible");
|
||||
|
||||
// the computer will at least destroy 1 creature
|
||||
return !human.isEmpty();
|
||||
}
|
||||
};//SpellAbility
|
||||
|
||||
// Do not remove SpellAbilities created by AbilityFactory or Keywords.
|
||||
card.clearFirstSpellAbility();
|
||||
card.addSpellAbility(spell);
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Amnesia")) {
|
||||
SpellAbility spell = new Spell(card) {
|
||||
|
||||
Reference in New Issue
Block a user