Condensed castrestrictions/handsize rule massively. handled by 1 rule now and checked in one pass.

This commit is contained in:
omegablast2002@yahoo.com
2010-09-24 19:26:32 +00:00
parent 27ae3b834b
commit 75c0733a38
4 changed files with 49 additions and 284 deletions

View File

@@ -120,21 +120,6 @@ void GameObserver::nextGamePhase(){
for (int i = 0; i < 2; ++i)
players[i]->getManaPool()->init();
// //End of turn--unearth clean up---leaving this as comment for code refference. origanal method i had for unearth now handled by sneakattackrule.
//if (currentGamePhase == Constants::MTG_PHASE_ENDOFTURN) {
// GameObserver *game = game->GetInstance();
// Player * p = game->currentPlayer;
// MTGGameZone * z = p->game->inPlay;
// for (int i= 0; i < z->nb_cards; i++){
// MTGCardInstance * card = z->cards[i];
//if (card->has(Constants::UNEARTH)) {
// for(i = z->nb_cards; i > -1; i--){
// card->controller()->game->putInExile(card);
//}
// }
// }
//}
if (currentGamePhase == Constants::MTG_PHASE_AFTER_EOT){
//Auto Hand cleaning, in case the player didn't do it himself
while(currentPlayer->game->hand->nb_cards > 7 && currentPlayer->nomaxhandsize < 1)