mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
fixed Expansion // Explosion dealing damage to all targets
This commit is contained in:
parent
72ce460dff
commit
28214209f6
1 changed files with 2 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ package mage.cards.e;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.dynamicvalue.common.StaticValue;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.CopyTargetSpellEffect;
|
||||
|
|
@ -79,7 +80,7 @@ class ExplosionEffect extends OneShotEffect {
|
|||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
int xValue = source.getManaCostsToPay().getX();
|
||||
Effect effect = new DamageTargetEffect(xValue);
|
||||
Effect effect = new DamageTargetEffect(new StaticValue(xValue), true, "", true);
|
||||
effect.setTargetPointer(new FixedTarget(source.getFirstTarget(), game));
|
||||
effect.apply(game, source);
|
||||
Player player = game.getPlayer(source.getTargets().get(1).getFirstTarget());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue