Exile Corrections
Todo: Update tests to include exile card count...
This commit is contained in:
@@ -1289,6 +1289,10 @@ ostream& operator<<(ostream& out, const MTGPlayerCards& z)
|
||||
out << "hand=";
|
||||
out << *(z.hand) << endl;
|
||||
}
|
||||
if(z.removedFromGame->cards.size()) {
|
||||
out << "exile=";
|
||||
out << *(z.hand) << endl;
|
||||
}
|
||||
|
||||
return out;
|
||||
}
|
||||
@@ -1321,6 +1325,11 @@ bool MTGPlayerCards::parseLine(const string& s)
|
||||
battlefield->parseLine(s.substr(limiter+1));
|
||||
return true;
|
||||
}
|
||||
else if (areaS.compare("removedfromgame") == 0 || areaS.compare("exile") == 0)
|
||||
{
|
||||
removedFromGame->parseLine(s.substr(limiter+1));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user