mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
convert Stern Judge to AF.
This commit is contained in:
@@ -3,6 +3,9 @@ ManaCost:2 W
|
|||||||
Types:Creature Cleric
|
Types:Creature Cleric
|
||||||
Text:no text
|
Text:no text
|
||||||
PT:2/2
|
PT:2/2
|
||||||
|
A:AB$LoseLife | Cost$ T | Defined$ Opponent | LifeAmount$ X | SubAbility$ YouLoseLife/dX | SpellDescription$ Each player loses 1 life for each Swamp he or she controls.
|
||||||
|
SVar:X:Count$TypeOppCtrl.Swamp
|
||||||
|
SVar:dX:Count$TypeYouCtrl.Swamp
|
||||||
SVar:Rarity:Uncommon
|
SVar:Rarity:Uncommon
|
||||||
SVar:Picture:http://resources.wizards.com/magic/cards/tor/en-us/card35082.jpg
|
SVar:Picture:http://resources.wizards.com/magic/cards/tor/en-us/card35082.jpg
|
||||||
SetInfo:TOR|Uncommon|http://magiccards.info/scans/en/tr/16.jpg
|
SetInfo:TOR|Uncommon|http://magiccards.info/scans/en/tr/16.jpg
|
||||||
|
|||||||
@@ -9590,41 +9590,6 @@ public class CardFactory_Creatures {
|
|||||||
//*************** END ************ END **************************
|
//*************** END ************ END **************************
|
||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
|
||||||
else if(cardName.equals("Stern Judge")) {
|
|
||||||
Ability_Cost abCost = new Ability_Cost("T", cardName, true);
|
|
||||||
final Ability_Activated ability = new Ability_Activated(card, abCost, null) {
|
|
||||||
private static final long serialVersionUID = 3059547795996737707L;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
AllZone.HumanPlayer.loseLife(countSwamps(AllZone.HumanPlayer),card);
|
|
||||||
AllZone.ComputerPlayer.loseLife(countSwamps(AllZone.ComputerPlayer),card);
|
|
||||||
}
|
|
||||||
|
|
||||||
int countSwamps(Player player) {
|
|
||||||
PlayerZone play = AllZone.getZone(Constant.Zone.Battlefield, player);
|
|
||||||
CardList swamps = new CardList(play.getCards());
|
|
||||||
swamps = swamps.getType("Swamp");
|
|
||||||
return swamps.size();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean canPlayAI() {
|
|
||||||
int computer = countSwamps(AllZone.ComputerPlayer);
|
|
||||||
int human = countSwamps(AllZone.HumanPlayer);
|
|
||||||
|
|
||||||
if((computer >= AllZone.ComputerPlayer.getLife()) || (human == 0)) return false;
|
|
||||||
|
|
||||||
return computer <= human;
|
|
||||||
}
|
|
||||||
};//SpellAbility
|
|
||||||
card.addSpellAbility(ability);
|
|
||||||
ability.setDescription("tap: Each player loses 1 life for each Swamp he or she controls.");
|
|
||||||
ability.setStackDescription("Stern Judge - Each player loses 1 life for each Swamp he or she controls");
|
|
||||||
}//*************** END ************ END **************************
|
|
||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
//*************** START *********** START **************************
|
||||||
else if(cardName.equals("Elvish Hunter")) {
|
else if(cardName.equals("Elvish Hunter")) {
|
||||||
Ability_Cost abCost = new Ability_Cost("1 G T", cardName, true);
|
Ability_Cost abCost = new Ability_Cost("1 G T", cardName, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user