mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
ControlSpell: Add extra check
This commit is contained in:
@@ -41,7 +41,6 @@ public class ControlSpellEffect extends SpellAbilityEffect {
|
|||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void resolve(SpellAbility sa) {
|
public void resolve(SpellAbility sa) {
|
||||||
// Gaining Control of Spells is a permanent effect
|
// Gaining Control of Spells is a permanent effect
|
||||||
@@ -98,8 +97,10 @@ public class ControlSpellEffect extends SpellAbilityEffect {
|
|||||||
if (remember) {
|
if (remember) {
|
||||||
source.addRemembered(tgtC);
|
source.addRemembered(tgtC);
|
||||||
}
|
}
|
||||||
|
if (tgtC.getController() != newController) {
|
||||||
|
tgtC.runChangeControllerCommands();
|
||||||
|
}
|
||||||
tgtC.addTempController(newController, tStamp);
|
tgtC.addTempController(newController, tStamp);
|
||||||
tgtC.runChangeControllerCommands();
|
|
||||||
si.setActivatingPlayer(newController);
|
si.setActivatingPlayer(newController);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user