- Improved the implementation of the second ability of Rhys the Redeemed.

This commit is contained in:
Sloth
2011-10-05 16:19:34 +00:00
parent d7b7e15284
commit 55ba45f870

View File

@@ -908,30 +908,7 @@ public class CardFactory_Creatures {
CardList allTokens = AllZoneUtil.getCreaturesInPlay(card.getController()); CardList allTokens = AllZoneUtil.getCreaturesInPlay(card.getController());
allTokens = allTokens.filter(CardListFilter.token); allTokens = allTokens.filter(CardListFilter.token);
int multiplier = AllZoneUtil.getDoublingSeasonMagnitude(card.getController()); CardFactoryUtil.copyTokens(allTokens);
for (int i = 0; i < allTokens.size(); i++) {
Card c = allTokens.get(i);
for (int j = 0; j < multiplier; j++)
copyToken(c);
}
}
public void copyToken(Card token) {
Card copy = new Card();
copy.setName(token.getName());
copy.setImageName(token.getImageName());
copy.setOwner(token.getController());
copy.addController(token.getController());
copy.setManaCost(token.getManaCost());
copy.setColor(token.getColor());
copy.setToken(true);
copy.setType(token.getType());
copy.setBaseAttack(token.getBaseAttack());
copy.setBaseDefense(token.getBaseDefense());
AllZone.getGameAction().moveToPlay(copy);
} }
@Override @Override