Player player = game.getPlayer(source.getControllerId());
Integer damageAmount = (Integer) this.getValue("damageAmount");
if (player != null && damageAmount.intValue() > 0) {
Player targetPlayer = game.getPlayer(targetPointer.getFirst(game, source));
if (targetPlayer != null) {
targetPlayer.damage(damageAmount.intValue(), source.getSourceId(), game, false, true);
return true;
}
Permanent permanent = game.getPermanent(targetPointer.getFirst(game, source));
if (permanent != null) {
permanent.damage(damageAmount.intValue(), source.getSourceId(), game, false, true);