Island Sanctuary check on the ability, not the event

This commit is contained in:
Ingmar Goudt 2021-08-02 23:52:11 +02:00
parent 4546ee516b
commit 295439b0a5

View file

@ -81,7 +81,7 @@ class IslandSanctuaryEffect extends ReplacementEffectImpl {
@Override
public boolean applies(GameEvent event, Ability source, Game game) {
return source.isControlledBy(event.getPlayerId()) && game.getTurn().getStepType() == PhaseStep.DRAW && game.getActivePlayerId().equals(event.getPlayerId());
return source.isControlledBy(event.getPlayerId()) && game.getTurn().getStepType() == PhaseStep.DRAW && game.getActivePlayerId().equals(source.getControllerId());
}
@Override