forked from External/mage
* Fixed a problem that the controller of triggered abilities was set to a false value if the source object of the triggered ability was removed from battlefield at the same time as other objects (fixes #1417).
This commit is contained in:
parent
2633a0fad8
commit
8b5272cb64
5 changed files with 152 additions and 42 deletions
|
|
@ -627,7 +627,7 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
|
|||
|
||||
this.abilities.setControllerId(controllerId);
|
||||
game.getContinuousEffects().setController(objectId, controllerId);
|
||||
|
||||
// the controller of triggered abilites is always set/checked before the abilities triggers so not needed here
|
||||
game.fireEvent(new GameEvent(EventType.LOST_CONTROL, objectId, objectId, beforeResetControllerId));
|
||||
game.fireEvent(new GameEvent(EventType.GAINED_CONTROL, objectId, objectId, controllerId));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue