fix windswept_heath.txt missing choice 1, added unearth support without workaround, tweaked alternative cost, added treason/sneak attack ability, added frozen.
This commit is contained in:
@@ -114,7 +114,21 @@ void GameObserver::nextGamePhase(){
|
||||
for (int i = 0; i < 2; ++i)
|
||||
players[i]->getManaPool()->init();
|
||||
|
||||
//After End of turn
|
||||
// //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)
|
||||
@@ -465,12 +479,11 @@ int GameObserver::untap(MTGCardInstance * card) {
|
||||
return 0;
|
||||
}
|
||||
if (card->has(Constants::DOESNOTUNTAP)) return 0;
|
||||
|
||||
if (card->frozen > 0) return 0;
|
||||
card->attemptUntap();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
TargetChooser * GameObserver::getCurrentTargetChooser(){
|
||||
TargetChooser * _tc = mLayers->actionLayer()->getCurrentTargetChooser();
|
||||
if (_tc) return _tc;
|
||||
|
||||
Reference in New Issue
Block a user