* 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:
LevelX2 2015-12-12 17:36:12 +01:00
parent 2633a0fad8
commit 8b5272cb64
5 changed files with 152 additions and 42 deletions

View file

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