ControlSpell: Add extra check

This commit is contained in:
TRT
2022-03-03 10:42:54 +01:00
parent fa1561f9d4
commit 1ca177253e

View File

@@ -41,7 +41,6 @@ public class ControlSpellEffect extends SpellAbilityEffect {
return sb.toString();
}
@Override
public void resolve(SpellAbility sa) {
// Gaining Control of Spells is a permanent effect
@@ -98,8 +97,10 @@ public class ControlSpellEffect extends SpellAbilityEffect {
if (remember) {
source.addRemembered(tgtC);
}
tgtC.addTempController(newController, tStamp);
if (tgtC.getController() != newController) {
tgtC.runChangeControllerCommands();
}
tgtC.addTempController(newController, tStamp);
si.setActivatingPlayer(newController);
}
}