// Korlash, Heir to Blackblade's power and toughness are each equal to the number of Swamps you control.
this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerToughnessSourceEffect(new PermanentsOnBattlefieldCount(filterPermanent), Duration.EndOfGame)));
// {1}{B}: Regenerate Korlash.
Effect effect = new RegenerateSourceEffect();
effect.setText("Regenerate Korlash.");
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{1}{B}")));
// Grandeur - Discard another card named Korlash, Heir to Blackblade: Search your library for up to two Swamp cards, put them onto the battlefield tapped, then shuffle your library.
effect = new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(0, 2, filterCard), true, true);
effect.setText("Search your library for up to two Swamp cards, put them onto the battlefield tapped, then shuffle your library.");
this.addAbility(new GrandeurAbility(effect, "Korlash, Heir to Blackblade"));
}