First obvious fixes.

This commit is contained in:
marcins78@gmail.com
2011-10-03 15:34:02 +00:00
parent 1567ea9ec5
commit 11632a6098
6 changed files with 4 additions and 7 deletions

View File

@@ -40,7 +40,7 @@ public class PayTwilightCostEffect implements Cost {
game.getGameState().sendMessage(_physicalCard.getOwner() + " adds " + twilightCost + " to twilight pool");
return new CostResolution(null, true);
} else {
boolean success = game.getGameState().getTwilightPool() <= twilightCost;
boolean success = game.getGameState().getTwilightPool() >= twilightCost;
twilightCost = Math.min(twilightCost, game.getGameState().getTwilightPool());
if (twilightCost > 0) {
game.getGameState().removeTwilight(twilightCost);

View File

@@ -14,7 +14,7 @@ public class RemoveTwilightEffect extends UnrespondableEffect implements Choosea
@Override
public void doPlayEffect(LotroGame game) {
int toRemove = Math.max(game.getGameState().getTwilightPool(), _twilight);
int toRemove = Math.min(game.getGameState().getTwilightPool(), _twilight);
game.getGameState().sendMessage(toRemove + " twilight gets removed from twilight pool");
game.getGameState().removeTwilight(toRemove);
}
@@ -26,7 +26,7 @@ public class RemoveTwilightEffect extends UnrespondableEffect implements Choosea
@Override
public CostResolution playCost(LotroGame game) {
int toRemove = Math.max(game.getGameState().getTwilightPool(), _twilight);
int toRemove = Math.min(game.getGameState().getTwilightPool(), _twilight);
game.getGameState().sendMessage(toRemove + " twilight gets removed from twilight pool");
game.getGameState().removeTwilight(toRemove);

View File

@@ -7,7 +7,6 @@ import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.GameState;
import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.logic.actions.RequiredTriggerAction;
import com.gempukku.lotro.logic.actions.WoundAction;
import com.gempukku.lotro.logic.decisions.CardsSelectionDecision;
import com.gempukku.lotro.logic.decisions.DecisionResultInvalidException;
import com.gempukku.lotro.logic.effects.WoundCharacterEffect;

View File

@@ -6,7 +6,6 @@ import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.GameState;
import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.logic.actions.RequiredTriggerAction;
import com.gempukku.lotro.logic.actions.WoundAction;
import com.gempukku.lotro.logic.decisions.CardsSelectionDecision;
import com.gempukku.lotro.logic.decisions.DecisionResultInvalidException;
import com.gempukku.lotro.logic.effects.WoundCharacterEffect;

View File

@@ -8,7 +8,6 @@ import com.gempukku.lotro.game.state.GameState;
import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.game.state.actions.DefaultActionsEnvironment;
import com.gempukku.lotro.logic.actions.RequiredTriggerAction;
import com.gempukku.lotro.logic.actions.WoundAction;
import com.gempukku.lotro.logic.effects.KillEffect;
import com.gempukku.lotro.logic.effects.WoundCharacterEffect;
import com.gempukku.lotro.logic.modifiers.ModifiersQuerying;

View File

@@ -37,7 +37,7 @@ public class LotroServer extends AbstractServer {
_lotroCardBlueprintLibrary = library;
_chatServer = chatServer;
_defaultCollection = new DefaultCardCollection();
for (int i = 1; i <= 1; i++) {
for (int i = 1; i <= 3; i++) {
for (int j = 1; j <= 365; j++) {
String blueprintId = i + "_" + j;
try {