- had some problems compiling for the PSP. I assume I was the only one, please let me know if the "include JLogger" lines are not needed (they were needed for me)
- Fix a memory leak when playing in "random deck" mode
- Prevent the AI from playing cards with a cost it cannot understand (ExtraCosts with a target).
This commit is contained in:
wagic.the.homebrew@gmail.com
2010-11-18 14:04:24 +00:00
parent 09afcea7da
commit f7bcbb42dc
7 changed files with 68 additions and 51 deletions

View File

@@ -10,6 +10,7 @@
#include "MTGAbility.h"
#include "DeckManager.h"
#include "AIPlayer.h"
#include <JLogger.h>
int Rules::getMTGId(string cardName)
{
@@ -297,6 +298,7 @@ Player * Rules::loadPlayerRandom(int isAI, int mode)
else
player = NEW AIPlayerBaka(tempDeck, deckFile, deckFileSmall, "");
delete tempDeck;
return player;
}