Fixed a bug of OnOpponentsTurnCondition (used by Illusionist's Gambit, Wake the Dead, Siren's Call,

Reset) fixes #1501.
This commit is contained in:
LevelX2 2016-01-28 21:44:02 +01:00
parent cb7becdeca
commit d1bbb9bfe7
2 changed files with 119 additions and 3 deletions

View file

@ -15,15 +15,15 @@ import mage.game.Game;
*/
public class OnOpponentsTurnCondition implements Condition {
private static final OnOpponentsTurnCondition fInstance = new OnOpponentsTurnCondition();
private static final OnOpponentsTurnCondition F_INSTANCE = new OnOpponentsTurnCondition();
public static Condition getInstance() {
return fInstance;
return F_INSTANCE;
}
@Override
public boolean apply(Game game, Ability source) {
return !game.getOpponents(source.getControllerId()).contains(game.getActivePlayerId());
return game.getOpponents(source.getControllerId()).contains(game.getActivePlayerId());
}
@Override