20 lines
726 B
Groovy
20 lines
726 B
Groovy
[
|
|
new MagicCDA() {
|
|
@Override
|
|
public void modPowerToughness(final MagicGame game,final MagicPlayer player,final MagicPowerToughness pt) {
|
|
final MagicCardList cardList = new MagicCardList(player.getGraveyard());
|
|
cardList.addAll(player.getOpponent().getGraveyard());
|
|
int types = 0;
|
|
for (final MagicType type : MagicType.ALL_CARD_TYPES) {
|
|
for (final MagicCard card : cardList) {
|
|
if (card.getCardDefinition().hasType(type)) {
|
|
types++;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
pt.set(types, types + 1);
|
|
}
|
|
}
|
|
]
|