- fixed issue 267 (hope charm)
- fixed an issue in which the core Rules where not correctly loaded for the test suite
This commit is contained in:
wagic.the.homebrew@gmail.com
2010-01-10 03:32:18 +00:00
parent 0892516ef4
commit b3dc2bcda2
5 changed files with 37 additions and 57 deletions
+1 -2
View File
@@ -232,9 +232,8 @@ void GameStateDuel::Update(float dt)
#ifdef TESTSUITE
else if (mParent->players[1] == PLAYER_TYPE_TESTSUITE){
if (testSuite && testSuite->loadNext()){
loadTestSuitePlayers();
rules = NEW Rules("testsuite.txt");
loadTestSuitePlayers();
mGamePhase = DUEL_STATE_PLAY;
testSuite->initGame();
char buf[4096];
+3 -1
View File
@@ -1840,7 +1840,9 @@ int TargetAbility::resolve(){
Targetable * t = tc->getNextTarget();
if (t && ability){
ability->target = t;
return ability->resolve();
if (ability->oneShot) return ability->resolve();
MTGAbility * a = ability->clone();
return a->addToGame();
}
return 0;
}