mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
ControlSpell: Add extra check
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user