diff --git a/src/Battling/Models/BattleSide.cpp b/src/Battling/Models/BattleSide.cpp index 9589b1e..245746a 100644 --- a/src/Battling/Models/BattleSide.cpp +++ b/src/Battling/Models/BattleSide.cpp @@ -1,6 +1,7 @@ #include "BattleSide.hpp" #include "../EventHooks/EventDataClasses.hpp" #include "Battle.hpp" +#include "../ScriptHandling/ScriptMacros.hpp" using namespace CreatureLib::Battling; @@ -52,6 +53,7 @@ void BattleSide::SetChoice(BaseTurnChoice* choice) { void BattleSide::SetCreature(ArbUt::OptionalBorrowedPtr creature, uint8_t index) { auto old = _creatures[index]; if (old.HasValue()) { + HOOK(OnRemove, this); old.GetValue()->SetOnBattleField(false); } _creatures[index] = creature;