Erwan
- Magic 2010 Rule: removed Manaburn - Magic 2010 Rule: manapools empty at the end of each step
This commit is contained in:
@@ -93,14 +93,9 @@ void GameObserver::nextGamePhase(){
|
||||
mLayers->actionLayer()->Update(0);
|
||||
return nextGamePhase();
|
||||
}
|
||||
//manaBurn
|
||||
if (currentGamePhase == Constants::MTG_PHASE_UNTAP ||
|
||||
currentGamePhase == Constants::MTG_PHASE_FIRSTMAIN ||
|
||||
currentGamePhase == Constants::MTG_PHASE_COMBATBEGIN ||
|
||||
currentGamePhase == Constants::MTG_PHASE_SECONDMAIN ||
|
||||
currentGamePhase == Constants::MTG_PHASE_ENDOFTURN
|
||||
){
|
||||
currentPlayer->manaBurn();
|
||||
|
||||
for (int i=0; i < 2; i++){
|
||||
players[i]->getManaPool()->init();
|
||||
}
|
||||
|
||||
//After End of turn
|
||||
|
||||
@@ -59,13 +59,6 @@ ManaCost * Player::getManaPool(){
|
||||
return manaPool;
|
||||
}
|
||||
|
||||
int Player::manaBurn(){
|
||||
int burn = manaPool->getConvertedCost();
|
||||
life -= burn;
|
||||
manaPool->init();
|
||||
return burn;
|
||||
}
|
||||
|
||||
|
||||
int Player::testLife(){
|
||||
if (life <=0){
|
||||
|
||||
Reference in New Issue
Block a user