// Solar Blast deals 3 damage to target creature or player.
this.getSpellAbility().addEffect(new DamageTargetEffect(3));
this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
// Cycling {1}{R}{R}
this.addAbility(new CyclingAbility(new ManaCostsImpl("{1}{R}{R}")));
// When you cycle Solar Blast, you may have it deal 1 damage to target creature or player.
Ability ability = new CycleTriggeredAbility(new DamageTargetEffect(1), true);
ability.addTarget(new TargetCreatureOrPlayer());
this.addAbility(ability);
}