This commit is contained in:
@@ -24,7 +24,12 @@ namespace CreatureLib::Battling {
|
||||
return _responsibleIndices.Contains(index);
|
||||
}
|
||||
|
||||
bool IsResponsibleForIndex(uint8_t side, uint8_t index) const;
|
||||
inline bool IsResponsibleForIndex(uint8_t side, uint8_t index) const {
|
||||
return std::any_of(_responsibleIndices.begin(), _responsibleIndices.end(),
|
||||
[side, index](const CreatureIndex& ci) {
|
||||
return ci.GetSideIndex() == side && ci.GetCreatureIndex() == index;
|
||||
});
|
||||
}
|
||||
|
||||
inline bool HasCreaturesNotInField() const {
|
||||
const auto& p = _party->GetParty();
|
||||
|
||||
Reference in New Issue
Block a user