effect.setText("");
LoyaltyAbility ability1 = new LoyaltyAbility(effect, -1);
effect = new SetPowerToughnessTargetEffect(5,5, Duration.EndOfGame);
effect.setText("Target artifact becomes an artifact creature with base power and toughness 5/5");
ability1.addEffect(effect);
ability1.addTarget(new TargetArtifactPermanent());
this.addAbility(ability1);
// -4: Target player loses X life and you gain X life, where X is twice the number of artifacts you control.
LoyaltyAbility ability2 = new LoyaltyAbility(new TezzeretAgentOfBolasEffect2(), -4);
ability2.addTarget(new TargetPlayer());