Skip to content

Commit

Permalink
fix issue with morale when game interface is not AAI
Browse files Browse the repository at this point in the history
  • Loading branch information
smanolloff committed Oct 10, 2024
1 parent a402dfc commit 45ef3a1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion AI/MMAI
5 changes: 5 additions & 0 deletions lib/CGameInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ void CAdventureAI::battleStacksEffectsSet(const BattleID & battleID, const SetSt
battleAI->battleStacksEffectsSet(battleID, sse);
}

void CAdventureAI::battleTriggerEffect(const BattleID & battleID, const BattleTriggerEffect & bte)
{
battleAI->battleTriggerEffect(battleID, bte);
}

void CAdventureAI::battleObstaclesChanged(const BattleID & battleID, const std::vector<ObstacleChanges> & obstacles)
{
battleAI->battleObstaclesChanged(battleID, obstacles);
Expand Down
1 change: 1 addition & 0 deletions lib/CGameInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ class DLL_LINKAGE CAdventureAI : public CGlobalAI
void battleNewRoundFirst(const BattleID & battleID) override;
void actionFinished(const BattleID & battleID, const BattleAction &action) override;
void battleStacksEffectsSet(const BattleID & battleID, const SetStackEffect & sse) override;
void battleTriggerEffect(const BattleID & battleID, const BattleTriggerEffect & bte) override;
void battleObstaclesChanged(const BattleID & battleID, const std::vector<ObstacleChanges> & obstacles) override;
void battleStackMoved(const BattleID & battleID, const CStack * stack, std::vector<BattleHex> dest, int distance, bool teleport) override;
void battleAttack(const BattleID & battleID, const BattleAttack *ba) override;
Expand Down

0 comments on commit 45ef3a1

Please sign in to comment.