mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 14:32:06 -08:00
Implement [CLB] Aboleth Spawn (#9857)
Update `StackAbility::createSingleCopy` to properly set controller Includes test coverage --------- Co-authored-by: Rowan Gudmundsson <rowan.gudmundsson@oddball.io> Co-authored-by: xenohedron <xenohedron@users.noreply.github.com>
This commit is contained in:
parent
d705fa0e41
commit
76f38201c0
4 changed files with 186 additions and 1 deletions
|
|
@ -632,8 +632,10 @@ public class StackAbility extends StackObjectImpl implements Ability {
|
|||
|
||||
@Override
|
||||
public void createSingleCopy(UUID newControllerId, StackObjectCopyApplier applier, MageObjectReferencePredicate newTargetFilterPredicate, Game game, Ability source, boolean chooseNewTargets) {
|
||||
Ability newAbility = this.copy();
|
||||
Ability newAbility = this.ability.copy();
|
||||
newAbility.newId();
|
||||
newAbility.setControllerId(newControllerId);
|
||||
|
||||
StackAbility newStackAbility = new StackAbility(newAbility, newControllerId);
|
||||
game.getStack().push(newStackAbility);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue