Pass creature along with OnEndTurn.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
parent
21231761ef
commit
374a4d10a8
|
@ -30,7 +30,7 @@ void TurnHandler::RunTurn(const ArbUt::BorrowedPtr<ChoiceQueue>& queue, const Ar
|
|||
if (!creature.HasValue()) {
|
||||
continue;
|
||||
}
|
||||
HOOK(OnEndTurn, creature.GetValue());
|
||||
HOOK(OnEndTurn, creature.GetValue(), creature.GetValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -86,7 +86,7 @@ namespace CreatureLib::Battling {
|
|||
virtual void PreventOpponentRunAway([[maybe_unused]] const FleeTurnChoice* choice,
|
||||
[[maybe_unused]] bool* result){};
|
||||
|
||||
virtual void OnEndTurn(){};
|
||||
virtual void OnEndTurn([[maybe_unused]] Creature* creature){};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue