C interface for Battle Side.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-04-04 17:03:06 +02:00
parent 3429f1647c
commit 3dd5aeffd8
4 changed files with 57 additions and 15 deletions

View File

@@ -103,8 +103,8 @@ void Battling::Creature::OnFaint() {
_battle->TriggerEventListener(new FaintEvent(this));
}
_library->GetExperienceLibrary()->HandleExperienceGain(this, _seenOpponents);
if (!_battle->CanSlotBeFilled(_side->GetSideIndex(), _side->GetCreatureIndex(this))) {
auto sideIndex = _side->GetCreatureIndex(this);
if (!_battle->CanSlotBeFilled(_side->GetSideIndex(), sideIndex)) {
_side->MarkSlotAsUnfillable(this);
}
_battle->ValidateBattleState();