Fixed replacementattack not being complete.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-03-22 10:30:45 +01:00
parent a7b87ab4f8
commit 970ca8ddd5
3 changed files with 9 additions and 1 deletions

View File

@@ -68,3 +68,7 @@ void BattleSide::GetActiveScripts(std::vector<ScriptWrapper>& scripts) {
scripts.emplace_back(&_volatile);
_battle->GetActiveScripts(scripts);
}
uint8_t BattleSide::GetRandomCreatureIndex() {
// TODO: Consider adding parameter to only get index for available creatures.
return _battle->GetRandom()->Get(_creaturesPerSide);
}

View File

@@ -79,6 +79,8 @@ namespace CreatureLib::Battling {
bool HasFled() { return _hasFled; }
void MarkAsFled() { _hasFled = true; }
uint8_t GetRandomCreatureIndex();
};
}