mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- Fixed Challenges in Classic mode.
This commit is contained in:
@@ -395,24 +395,20 @@ public class SSubmenuQuestUtil {
|
||||
PlayerStartConditions humanStart = new PlayerStartConditions(SSubmenuQuestUtil.getCurrentDeck());
|
||||
PlayerStartConditions aiStart = new PlayerStartConditions(event.getEventDeck());
|
||||
|
||||
if (qData.getMode() == QuestMode.Fantasy) {
|
||||
int lifeAI = 20;
|
||||
int extraLifeHuman = 0;
|
||||
int extraLifeHuman = 0;
|
||||
int lifeAI = 20;
|
||||
if (event instanceof QuestEventChallenge) {
|
||||
lifeAI = ((QuestEventChallenge) event).getAILife();
|
||||
|
||||
if (event instanceof QuestEventChallenge) {
|
||||
lifeAI = ((QuestEventChallenge) event).getAILife();
|
||||
|
||||
if (qData.getAssets().hasItem(QuestItemType.ZEPPELIN)) {
|
||||
extraLifeHuman = 3;
|
||||
}
|
||||
if (qData.getAssets().hasItem(QuestItemType.ZEPPELIN)) {
|
||||
extraLifeHuman = 3;
|
||||
}
|
||||
}
|
||||
humanStart.setStartingLife(qData.getAssets().getLife(qData.getMode()) + extraLifeHuman);
|
||||
aiStart.setStartingLife(lifeAI);
|
||||
|
||||
humanStart.setStartingLife(qData.getAssets().getLife(qData.getMode()) + extraLifeHuman);
|
||||
aiStart.setStartingLife(lifeAI);
|
||||
|
||||
humanStart.setCardsOnBattlefield(QuestUtil.getHumanStartingCards(qData, event));
|
||||
aiStart.setCardsOnBattlefield(QuestUtil.getComputerStartingCards(event));
|
||||
} // End isFantasy
|
||||
humanStart.setCardsOnBattlefield(QuestUtil.getHumanStartingCards(qData, event));
|
||||
aiStart.setCardsOnBattlefield(QuestUtil.getComputerStartingCards(event));
|
||||
|
||||
MatchStartHelper msh = new MatchStartHelper();
|
||||
msh.addPlayer(Singletons.getControl().getLobby().getQuestPlayer(), humanStart);
|
||||
|
||||
Reference in New Issue
Block a user