if (manaCosts.pay(source, game, source.getSourceId(), controller.getId(), false)) {
int amount = creature.getPower().getValue();
UUID target = source.getTargets().getFirstTarget();
Permanent targetCreature = game.getPermanent(target);
if (targetCreature != null) {
targetCreature.damage(amount, creature.getId(), game, false, true);
} else {
Player player = game.getPlayer(target);
if (player != null) {
player.damage(amount, creature.getId(), game, false, true);
}