- Spellskite should grab its magnet target from DefinedMagnet.

This commit is contained in:
Agetian
2019-03-28 17:34:53 +03:00
parent 51e9e2b692
commit 9c39d159e9

View File

@@ -79,7 +79,7 @@ public class ChangeTargetsEffect extends SpellAbilityEffect {
newTargetBlock.remove(oldTarget);
replaceIn.updateTarget(newTargetBlock);
// 3. test if updated choices would be correct.
GameObject newTarget = Iterables.getFirst(getDefinedCardsOrTargeted(sa), null);
GameObject newTarget = Iterables.getFirst(getDefinedCardsOrTargeted(sa, "DefinedMagnet"), null);
if (replaceIn.getSpellAbility(true).canTarget(newTarget)) {
newTargetBlock.add(newTarget);