Premade decks will not create/update stats on battles.
Update description for default premade deck to allow proper wrapping of text. Issue: 540
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
#NAME:Premade G/R
|
||||
#DESC:A Red/Green deck with simple mechanics
|
||||
#DESC:to get you started.
|
||||
#DESC:We recommend to create your own decks
|
||||
#DESC:to get the full Wagic Fun!
|
||||
#DESC:A Red/Green deck with simple mechanics to get you started. We recommend to create your own decks to get the full Wagic Fun!
|
||||
|
||||
Forest (10E) *11
|
||||
Mountain (10E) *12
|
||||
|
||||
@@ -233,13 +233,13 @@ void GameStateDuel::End()
|
||||
JRenderer::GetInstance()->EnableVSync(false);
|
||||
DeckManager::EndInstance();
|
||||
|
||||
if (mPlayers[0] && mPlayers[1]) // save the stats for the game
|
||||
if (!premadeDeck && mPlayers[0] && mPlayers[1]) // save the stats for the game
|
||||
mPlayers[0]->End();
|
||||
else
|
||||
else if ( !mPlayers[1] && mPlayers[0] )
|
||||
// clean up player object
|
||||
SAFE_DELETE( mPlayers[0] );
|
||||
|
||||
GameObserver::EndInstance();
|
||||
GameObserver::EndInstance(); // this will delete both player objects
|
||||
game = NULL;
|
||||
premadeDeck = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user