@Override
                public void resolve() {
                    int x = card.getXManaCostPaid();
                    if (getTargetPlayer() == null) {
                        getTargetCard().addDamage((int) Math.floor(x / 2.0), card);
                    } else {
                        getTargetPlayer().addDamage((int) Math.floor(x / 2.0), card);
                    }
                    card.getController().addDamage((int) Math.ceil(x / 2.0), card);
                    card.setXManaCostPaid(0);
                }