Clear scripts from creature when a battle is cleared from it.
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 16:31:47 +01:00
parent 66b95a6e4d
commit 987f60ee85
2 changed files with 5 additions and 1 deletions

View File

@@ -104,6 +104,7 @@ namespace CreatureLib::Battling {
_battle = nullptr;
_side = nullptr;
_seenOpponents = {};
ResetActiveScripts();
}
bool Creature::ChangeStatBoost(Library::Statistic stat, int8_t diffAmount) {