Reverting r3496 to fix failing tests

This commit is contained in:
wagic.the.homebrew
2011-04-21 15:16:22 +00:00
parent 1d295c0cef
commit 6f5919ed06
13 changed files with 53 additions and 70 deletions

View File

@@ -604,9 +604,9 @@ void GameObserver::gameStateBasedEffects()
for(int w = 0;w < z->nb_cards;w++)
{
int colored = 0;
for (int colorIdx = Constants::MTG_COLOR_GREEN; colorIdx <= Constants::MTG_COLOR_WHITE; ++colorIdx)
for (int i = Constants::MTG_COLOR_GREEN; i <= Constants::MTG_COLOR_WHITE; ++i)
{
if (z->cards[w]->hasColor(colorIdx))
if (z->cards[w]->hasColor(i))
++colored;
}
if(colored > 1)
@@ -770,8 +770,7 @@ void GameObserver::Affinity()
{
reduce = card->controller()->game->battlefield->countByType(type.c_str());
}
for(int reductionIdx = 0; reductionIdx < reduce; reductionIdx++)
for(int i = 0; i < reduce;i++)
{
if(card->getManaCost()->getCost(color) > 0)
card->getManaCost()->remove(color,1);