mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
Fixes Soulfire Eruption not handling MDFCs
This commit is contained in:
parent
1538714555
commit
fbb1da433a
1 changed files with 2 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ import mage.players.Player;
|
||||||
import mage.target.Target;
|
import mage.target.Target;
|
||||||
import mage.target.common.TargetAnyTarget;
|
import mage.target.common.TargetAnyTarget;
|
||||||
import mage.target.targetpointer.FixedTarget;
|
import mage.target.targetpointer.FixedTarget;
|
||||||
|
import mage.util.CardUtil;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
@ -119,6 +120,7 @@ class SoulfireEruptionCastEffect extends AsThoughEffectImpl {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) {
|
public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) {
|
||||||
|
objectId = CardUtil.getMainCardId(game, objectId); // for split cards
|
||||||
return source.isControlledBy(affectedControllerId)
|
return source.isControlledBy(affectedControllerId)
|
||||||
&& objectId.equals(getTargetPointer().getFirst(game, source));
|
&& objectId.equals(getTargetPointer().getFirst(game, source));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue