changing some of the logic to the previous fixes, we want to avoid using code that looks for specific card names.
currently we have kamiflip as the only defined flip type as it is treated differently from the others. but we have room for more if needed now doublefaced=kamiflip sets the flip type of a card to the kamiflip style cards. since this is defined on cardprimitive level now, we might be able to do something different from the flipping animation. who knows. commented out the forcing token triggers, it bypass targetchooser check. still working on a fix for this coming soon.
This commit is contained in:
@@ -54,6 +54,7 @@ void GameObserver::cleanup()
|
||||
gameTurn.clear();
|
||||
OpenedDisplay = NULL;
|
||||
AffinityNeedsUpdate = false;
|
||||
legendNeedUpdate = false;
|
||||
}
|
||||
|
||||
GameObserver::~GameObserver()
|
||||
@@ -898,11 +899,15 @@ void GameObserver::gameStateBasedEffects()
|
||||
//------------------------------
|
||||
p->nomaxhandsize = (z->hasAbility(Constants::NOMAXHAND));
|
||||
//legendary
|
||||
for (int cl = 0; cl < nbcards; cl++)
|
||||
if (legendNeedUpdate)
|
||||
{
|
||||
MTGCardInstance * c = z->cards[cl];
|
||||
if(!c->isPhased && c->hasType(Subtypes::TYPE_LEGENDARY) && !c->has(Constants::NOLEGEND))
|
||||
checkLegendary(c);
|
||||
for (int cl = 0; cl < nbcards; cl++)
|
||||
{
|
||||
MTGCardInstance * c = z->cards[cl];
|
||||
if (!c->isPhased && c->hasType(Subtypes::TYPE_LEGENDARY) && !c->has(Constants::NOLEGEND))
|
||||
checkLegendary(c);
|
||||
}
|
||||
legendNeedUpdate = false;
|
||||
}
|
||||
/////////////////////////////////////////////////
|
||||
//handle end of turn effects while we're at it.//
|
||||
@@ -1126,6 +1131,7 @@ void GameObserver::Affinity()
|
||||
}
|
||||
}
|
||||
///we handle trisnisphere seperately because its a desaster.
|
||||
if(card->getManaCost())//make sure we check, abiliy$!/token dont have a mancost object.
|
||||
if (card->has(Constants::TRINISPHERE))
|
||||
{
|
||||
for (int jj = card->getManaCost()->getConvertedCost(); jj < 3; jj++)
|
||||
|
||||
Reference in New Issue
Block a user