mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
* Fixed a bug were copied abilites (e.g. by Progenitor Mimic) did not use the correct controller after the control of the copying permanent changed (e.g. by Capitivating Vampire).
This commit is contained in:
parent
3184252d54
commit
4b0d027847
3 changed files with 9 additions and 2 deletions
|
|
@ -632,6 +632,9 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
|
|||
game.fireEvent(new GameEvent(EventType.GAINED_CONTROL, objectId, objectId, controllerId));
|
||||
|
||||
return true;
|
||||
} else if (isCopy()) {// Because the previous copied abilities can be from another controller chnage controller in any case for abilities
|
||||
this.getAbilities(game).setControllerId(controllerId);
|
||||
game.getContinuousEffects().setController(objectId, controllerId);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue