mirror of
https://github.com/magefree/mage.git
synced 2026-01-23 11:49:56 -08:00
* Fixed a bug of Exchange control were activated abilities got the wrong controller.
This commit is contained in:
parent
6c93ba1285
commit
18e4bc7f18
4 changed files with 60 additions and 3 deletions
|
|
@ -133,6 +133,7 @@ public class ExchangeControlTargetEffect extends ContinuousEffectImpl {
|
|||
continue;
|
||||
}
|
||||
permanent.changeControllerId(lockedControllers.get(permanent.getId()), game);
|
||||
permanent.getAbilities().setControllerId(lockedControllers.get(permanent.getId()));
|
||||
}
|
||||
if (!toDelete.isEmpty()) {
|
||||
for(UUID uuid: toDelete) {
|
||||
|
|
|
|||
|
|
@ -1292,11 +1292,10 @@ public abstract class GameImpl implements Game, Serializable {
|
|||
}
|
||||
applier.apply(this, permanent);
|
||||
|
||||
Ability newAbility = source.copy();
|
||||
|
||||
CopyEffect newEffect = new CopyEffect(duration, permanent, copyToPermanent.getId());
|
||||
newEffect.newId();
|
||||
newEffect.setApplier(applier);
|
||||
Ability newAbility = source.copy();
|
||||
newEffect.init(newAbility, this);
|
||||
|
||||
// handle copies of copies
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue