// {tap}: Add {G} to your mana pool.
this.addAbility(new GreenManaAbility());
// At the beginning of each upkeep, if no spells were cast last turn, transform Scorned Villager.
this.addAbility(new TransformAbility());
TriggeredAbility ability = new BeginningOfUpkeepTriggeredAbility(new TransformSourceEffect(true), TargetController.ANY, false);
this.addAbility(new ConditionalTriggeredAbility(ability,
NoSpellsWereCastLastTurnCondition.getInstance(),
TransformAbility.NO_SPELLS_TRANSFORM_RULE));
}