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

@@ -103,6 +103,7 @@ namespace CreatureLib::Battling {
void Creature::ClearBattleData() noexcept {
_battle = nullptr;
_side = nullptr;
_seenOpponents = {};
}
bool Creature::ChangeStatBoost(Library::Statistic stat, int8_t diffAmount) {
@@ -135,10 +136,6 @@ namespace CreatureLib::Battling {
this->_boostedStats.SetStat(stat, s);
}
const ArbUt::OptionalBorrowedPtr<Battle>& Creature::GetBattle() const { return _battle; }
const ArbUt::OptionalBorrowedPtr<BattleSide>& Creature::GetBattleSide() const { return _side; }
bool Creature::IsFainted() const noexcept { return this->_currentHealth == 0; }
void Creature::OnFaint() {