-check athat act of treason works correctly
-Fixed emblem of warmind
-removed incorrect cards ("When this enters the battlefield, target..." please see http://wololo.net/forum/viewtopic.php?f=6&t=669
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-09-26 04:10:29 +00:00
parent c5b48df138
commit 6df665c340
45 changed files with 828 additions and 746 deletions
+5
View File
@@ -286,6 +286,11 @@ void GameObserver::stateEffects()
for (int j = zone->nb_cards-1 ; j>=0; j--){
MTGCardInstance * card = zone->cards[j];
card->afterDamage();
//Remove auras that don't have a valid target anymore
if (card->target && !isInPlay(card->target)){
players[i]->game->putInGraveyard(card);
}
}
}
for (int i =0; i < 2; i++)
+1 -5
View File
@@ -1710,11 +1710,7 @@ int MTGAbility::testDestroy(){
if (forceDestroy == 1) return 1;
if (forceDestroy == -1) return 0;
if (!game->isInPlay(source) ) return 1;
if (target && !game->isInPlay((MTGCardInstance *)target)){
source->controller()->game->putInGraveyard(source);//TODO put this in a better place ???
return 1;
}
if (target && !game->isInPlay((MTGCardInstance *)target)) return 1;
return 0;
}
+4 -4
View File
@@ -75,7 +75,7 @@ int TestSuiteAI::Act(float dt){
}
timer+= dt;
timer+= 1;
if (timer < suite->timerLimit) return 1;
timer = 0;
@@ -271,11 +271,11 @@ void TestSuite::initGame(){
//The first test runs slowly, the other ones run faster.
//This way a human can see what happens when testing a specific file,
// or go faster when it comes to the whole test suite.
//Warning, putting this value too low (< 0.25) will give unexpected results
//Warning, putting this value too low (< 3) will give unexpected results
if (!timerLimit){
timerLimit = 0.5;
timerLimit = 40;
}else{
timerLimit = 0.1;
timerLimit = 3;
}
//Put the GameObserver in the initial state
GameObserver * g = GameObserver::GetInstance();