fix Light Up the Night dealing double damage

This commit is contained in:
xenohedron 2025-02-01 00:43:51 -05:00
parent c838c8ad51
commit bbd0fa2ffb

View file

@ -16,7 +16,6 @@ import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.players.Player;
import mage.target.common.TargetAnyTarget;
import mage.util.CardUtil;
import java.util.UUID;
@ -69,8 +68,7 @@ class LightUpTheNightEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
// Normal cast + Flashback cast
int damage = CardUtil.getSourceCostsTag(game, source, "X", 0) + GetXValue.instance.calculate(game, source, this);
int damage = GetXValue.instance.calculate(game, source, this);
UUID targetId = getTargetPointer().getFirst(game, source);
Player player = game.getPlayer(targetId);
if (player != null) {