mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Merge pull request #4656 from pmbarrett314/master
Attempted fix for Momir Free For All
This commit is contained in:
commit
90d6b29841
1 changed files with 6 additions and 1 deletions
|
@ -49,7 +49,7 @@ import mage.players.Player;
|
||||||
*
|
*
|
||||||
* @author nigelzor
|
* @author nigelzor
|
||||||
*/
|
*/
|
||||||
public class MomirGame extends FreeForAll {
|
public class MomirGame extends GameImpl {
|
||||||
|
|
||||||
private int numPlayers;
|
private int numPlayers;
|
||||||
|
|
||||||
|
@ -97,6 +97,11 @@ public class MomirGame extends FreeForAll {
|
||||||
return opponents;
|
return opponents;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isOpponent(Player player, UUID playerToCheck) {
|
||||||
|
return !player.getId().equals(playerToCheck) && player.getInRange().contains(playerToCheck);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MomirGame copy() {
|
public MomirGame copy() {
|
||||||
return new MomirGame(this);
|
return new MomirGame(this);
|
||||||
|
|
Loading…
Reference in a new issue