- Some fixes for the alternate win conditions (should not get rewards if the computer does them).

This commit is contained in:
jendave
2011-08-06 04:32:22 +00:00
parent 1b83b0fca4
commit 533d4f1aac
3 changed files with 44 additions and 31 deletions

View File

@@ -14299,11 +14299,13 @@ public class CardFactory implements NewConstants {
public void resolve() {
AllZone.GameAction.getPlayerLife(getTargetPlayer()).setLife(0);
if (getTargetPlayer().equals(Constant.Player.Computer)) {
int gameNumber = 0;
if (Constant.Runtime.WinLose.getWin()==1)
gameNumber = 1;
Constant.Runtime.WinLose.setWinMethod(gameNumber,"Door to Nothingness");
}
}
@Override
public boolean canPlayAI() {

View File

@@ -448,6 +448,7 @@ public class GameAction {
if (AllZone.Computer_PoisonCounter.getPoisonCounters() >= 10)
{
int gameNumber = 0;
if (Constant.Runtime.WinLose.getWin() == 1)
gameNumber = 1;
Constant.Runtime.WinLose.setWinMethod(gameNumber, "Poison Counters");

View File

@@ -6623,10 +6623,12 @@ public class GameActionUtil {
String opponent = AllZone.GameAction.getOpponent(player);
PlayerLife life = AllZone.GameAction.getPlayerLife(opponent);
if (opponent.equals(Constant.Player.Computer)) {
int gameNumber = 0;
if (Constant.Runtime.WinLose.getWin()==1)
gameNumber = 1;
Constant.Runtime.WinLose.setWinMethod(gameNumber,"Felidar Sovereign");
}
life.setLife(0);
}
};// Ability
@@ -6651,10 +6653,12 @@ public class GameActionUtil {
String opponent = AllZone.GameAction.getOpponent(player);
PlayerLife life = AllZone.GameAction.getPlayerLife(opponent);
if (opponent.equals(Constant.Player.Computer)) {
int gameNumber = 0;
if (Constant.Runtime.WinLose.getWin()==1)
gameNumber = 1;
Constant.Runtime.WinLose.setWinMethod(gameNumber,"Battle of Wits");
}
life.setLife(0);
}
@@ -6682,11 +6686,12 @@ public class GameActionUtil {
String opponent = AllZone.GameAction.getOpponent(player);
PlayerLife life = AllZone.GameAction.getPlayerLife(opponent);
if (opponent.equals(Constant.Player.Computer)) {
int gameNumber = 0;
if (Constant.Runtime.WinLose.getWin()==1)
gameNumber = 1;
Constant.Runtime.WinLose.setWinMethod(gameNumber,"Epic Struggle");
}
life.setLife(0);
}
};// Ability
@@ -6709,10 +6714,12 @@ public class GameActionUtil {
@Override
public void resolve()
{
if (AllZone.GameAction.getOpponent(player).equals(Constant.Player.Computer)) {
int gameNumber = 0;
if (Constant.Runtime.WinLose.getWin()==1)
gameNumber = 1;
Constant.Runtime.WinLose.setWinMethod(gameNumber,"Helix Pinnacle");
}
AllZone.GameAction.getPlayerLife(AllZone.GameAction.getOpponent(player))
.setLife(0);
}
@@ -6739,10 +6746,12 @@ public class GameActionUtil {
String opponent = AllZone.GameAction.getOpponent(player);
PlayerLife oppLife = AllZone.GameAction.getPlayerLife(opponent);
if (opponent.equals(Constant.Player.Computer)) {
int gameNumber = 0;
if (Constant.Runtime.WinLose.getWin()==1)
gameNumber = 1;
Constant.Runtime.WinLose.setWinMethod(gameNumber,"Near-Death Experience");
}
oppLife.setLife(0);
}
@@ -6776,11 +6785,12 @@ public class GameActionUtil {
String opponent = AllZone.GameAction.getOpponent(player);
PlayerLife life = AllZone.GameAction.getPlayerLife(opponent);
if (opponent.equals(Constant.Player.Computer)) {
int gameNumber = 0;
if (Constant.Runtime.WinLose.getWin()==1)
gameNumber = 1;
Constant.Runtime.WinLose.setWinMethod(gameNumber,"Barren Glory");
}
life.setLife(0);
}
};// Ability