Erwan
- 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:
@@ -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];
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user