this.power = new MageInt(3);
this.toughness = new MageInt(3);
// As long as you control an artifact, Scrapyard Mongrel gets +2/+0 and has trample.
Effect boostEffect = new ConditionalContinousEffect(
new BoostSourceEffect(2, 0, Duration.WhileOnBattlefield),
new PermanentsOnTheBattlefieldCondition(filter),
"As long as you control an artifact, {this} gets +2/+0");
Effect gainAbilityEffect = new ConditionalContinousEffect(
new GainAbilitySourceEffect(TrampleAbility.getInstance(), Duration.WhileOnBattlefield),
new PermanentsOnTheBattlefieldCondition(filter),