mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Fixed reversed logic of "Your opponents can't win the game." and "You can't win the game.".
This commit is contained in:
@@ -1527,13 +1527,13 @@ public abstract class Player extends GameEntity {
|
|||||||
* @return a boolean.
|
* @return a boolean.
|
||||||
*/
|
*/
|
||||||
public boolean cantWin() {
|
public boolean cantWin() {
|
||||||
CardList list = getOpponent().getCardsIn(Zone.Battlefield);
|
CardList list = getCardsIn(Zone.Battlefield);
|
||||||
list = list.getKeyword("You can't win the game.");
|
list = list.getKeyword("You can't win the game.");
|
||||||
|
|
||||||
if (list.size() > 0)
|
if (list.size() > 0)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
CardList oppList = getCardsIn(Zone.Battlefield);
|
CardList oppList = getOpponent().getCardsIn(Zone.Battlefield);
|
||||||
oppList = oppList.getKeyword("Your opponents can't win the game.");
|
oppList = oppList.getKeyword("Your opponents can't win the game.");
|
||||||
|
|
||||||
return oppList.size() > 0;
|
return oppList.size() > 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user