Reset seen opponents on ClearBattle.
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
2021-01-15 15:46:48 +01:00
parent 6edc9da536
commit 66b95a6e4d
4 changed files with 10 additions and 11 deletions

View File

@@ -11,8 +11,9 @@ bool BattleSide::AllPossibleSlotsFilled() const {
for (size_t i = 0; i < _creatures.Count(); i++) {
auto c = _creatures[i];
if (!c.HasValue() || c.GetValue()->IsFainted()) {
if (_battle->CanSlotBeFilled(_index, i))
if (_battle->CanSlotBeFilled(_index, i)) {
return false;
}
}
}
} catch (const std::exception& e) {