Merge branch 'fixGrip' into 'master'

Fix ChangeTargets not finding StackInstance

Closes #941

See merge request core-developers/forge!3624
This commit is contained in:
Michael Kamensky
2021-01-22 09:30:36 +00:00

View File

@@ -36,7 +36,7 @@ public class ChangeTargetsEffect extends SpellAbilityEffect {
final MagicStack stack = activator.getGame().getStack();
for (final SpellAbility tgtSA : sas) {
SpellAbilityStackInstance si = stack.getInstanceFromSpellAbility(tgtSA);
SpellAbilityStackInstance si = stack.getInstanceMatchingSpellAbilityID(tgtSA);
if (si == null) {
// If there isn't a Stack Instance, there isn't really a target
continue;