add back Balance with 4e card image and event description

master
melvinzhang 2015-04-26 10:07:17 +08:00
parent 498a66f159
commit cdf485dc16
2 changed files with 9 additions and 7 deletions

View File

@ -5,23 +5,25 @@
return new MagicEvent(
cardOnStack,
this,
"Each player chooses a number of lands he or she controls equal to the number of lands controlled by the player " +
"who controls the fewest, then sacrifices the rest. Players discard cards and sacrifice creatures the same way."
"Except for the player with the fewest lands, each player sacrifices lands until all players control the same number of lands. " +
"Players discard cards and sacrifice creatures the same way."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
for (final MagicPlayer player : game.getAPNAP()) {
final int n1 = player.getNrOfPermanents(MagicType.Land) - player.getOpponent().getNrOfPermanents(MagicType.Land);
final int n2 = player.getHandSize() - player.getOpponent().getHandSize();
final int n3 = player.getNrOfPermanents(MagicType.Creature) - player.getOpponent().getNrOfPermanents(MagicType.Creature);
for (int i=n1;i>0;i--) {
n1.times {
game.addEvent(new MagicSacrificePermanentEvent(event.getSource(),player,SACRIFICE_LAND));
}
final int n2 = player.getHandSize() - player.getOpponent().getHandSize();
if (n2 > 0) {
game.addEvent(new MagicDiscardEvent(event.getSource(),player,n2));
}
for (int i=n3;i>0;i--) {
final int n3 = player.getNrOfPermanents(MagicType.Creature) - player.getOpponent().getNrOfPermanents(MagicType.Creature);
n3.times {
game.addEvent(new MagicSacrificePermanentEvent(event.getSource(),player,SACRIFICE_CREATURE));
}
}

View File

@ -1,5 +1,5 @@
name=Balance
image=http://magiccards.info/scans/en/vma/14.jpg
image=http://magiccards.info/scans/en/4e/256.jpg
value=5.000
rarity=M
type=Sorcery