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:
Rowan Gudmundsson 2023-10-14 14:12:15 -07:00 committed by GitHub
parent d705fa0e41
commit 76f38201c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 186 additions and 1 deletions

View file

@ -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);