mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Fixed a bug of OnOpponentsTurnCondition (used by Illusionist's Gambit, Wake the Dead, Siren's Call,
Reset) fixes #1501.
This commit is contained in:
parent
cb7becdeca
commit
d1bbb9bfe7
2 changed files with 119 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue