// Vigilance
this.addAbility(VigilanceAbility.getInstance());
// Heroic - Whenever you cast a spell that targets Anax and Cymede, creatures you control get +1/+1 and gain trample until end of turn.
Effect effect = new BoostControlledEffect(1,1, Duration.EndOfTurn, filter);
effect.setText("creatures you control get +1/+1");
Ability ability = new HeroicAbility(effect);
effect = new GainAbilityControlledEffect(TrampleAbility.getInstance(), Duration.EndOfTurn, filter);
effect.setText("and gain trample until end of turn");
ability.addEffect(effect);
this.addAbility(ability);
}