diff --git a/src/Battling/Models/BattleSide.hpp b/src/Battling/Models/BattleSide.hpp index 7543719..4f8b551 100644 --- a/src/Battling/Models/BattleSide.hpp +++ b/src/Battling/Models/BattleSide.hpp @@ -78,6 +78,16 @@ namespace CreatureLib::Battling { } } + inline bool IsSlotUnfillabe(const ArbUt::BorrowedPtr& creature) const noexcept { + for (u8 i = 0; i < _creaturesPerSide; i++) { + if (!_creatures[i].HasValue()) + continue; + if (_creatures[i].GetValue() == creature) { + return _fillableSlots.At(i) l + } + } + } + bool IsDefeated() noexcept { for (auto b : _fillableSlots) { if (b)