[ new MagicCDA() { @Override public void modPowerToughness(final MagicGame game, final MagicPlayer player, final MagicPowerToughness pt) { final int amount = player.getNrOfPermanents(MagicType.Creature); pt.set(amount, amount); } }, new MagicWhenComesIntoPlayTrigger() { @Override public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPayedCost payedCost) { return new MagicEvent( permanent, this, "PN puts two 1/1 white Spirit creature tokens with flying onto the battlefield." ); } @Override public void executeEvent(final MagicGame game, final MagicEvent event) { game.doAction(new MagicPlayTokensAction( event.getPlayer(), TokenCardDefinitions.get("Spirit2"), 2 )); } } ]