Cor Kalom stops to attack the player
Describe the bug Cor Kalom stops to attack the player in the Sleeper's temple if the player fled before.
Expected behavior Cor Kalom continues to attack the player in the Sleeper's temple even if the player fled before.
Additional context Bug provided by Blubbler.
It seems like Cor Kalom does not change his daily routine (to start) after the dialog as it was intended. The initial daily routine does not make him attack the player.
In order to always fix the problem if it already persists in a savegame, this may best solve the problem (untestet!)
https://github.com/AmProsius/gothic-1-community-patch/blob/f386ca443496783307a91437f00772b92802a4dd/scriptbase/_work/Data/Scripts/Content/Story/ZS/Pers/ZS_InterceptMadCorKalom.d#L30-L37
changed to
func int ZS_InterceptMadCorKalom_Loop ()
{
if (Npc_KnowsInfo(hero, GUR_1212_MadCorKalom_Talk2SC) {
Npc_ExchangeRoutine(self, "start");
AI_ContinueRoutine(self);
return LOOP_END;
};
PrintDebugNpc (PD_TA_LOOP,"ZS_InterceptMadCorKalom_Loop");
AI_Wait (self, 1);
return LOOP_CONTINUE;
};