From 395b126f5c146fd6b54e40ce89bc1a106aa10911 Mon Sep 17 00:00:00 2001 From: pionere Date: Sat, 3 Aug 2024 10:35:57 +0200 Subject: [PATCH] bugfix for vanilla - prevent the player from following a hidden monster --- Source/player.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/player.cpp b/Source/player.cpp index 641c1cb917e..b92e4346b6d 100644 --- a/Source/player.cpp +++ b/Source/player.cpp @@ -2530,7 +2530,8 @@ static bool CheckNewPath(int pnum) } if (plr._pDestAction == ACTION_ATTACKMON) { - MakePlrPath(pnum, monsters[plr._pDestParam1]._mfutx, monsters[plr._pDestParam1]._mfuty, false); + if (!(monsters[plr._pDestParam1]._mFlags & MFLAG_HIDDEN)) + MakePlrPath(pnum, monsters[plr._pDestParam1]._mfutx, monsters[plr._pDestParam1]._mfuty, false); } else if (plr._pDestAction == ACTION_ATTACKPLR) { MakePlrPath(pnum, plx(plr._pDestParam1)._pfutx, plx(plr._pDestParam1)._pfuty, false); }