this.color.setRed(true);
this.power = new MageInt(4);
this.toughness = new MageInt(2);
this.addAbility(new UndyingAbility());
// Whenever Flayer of the Hatebound or another creature enters the battlefield from your graveyard, that creature deals damage equal to its power to target creature or player.
Ability ability = new FlayerTriggeredAbility();
ability.addTarget(new TargetCreatureOrPlayer());
this.addAbility(ability);