Reset seen opponents on ClearBattle.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user