Explorar o código

Check and remove MD_CHANGECHASE flag to prevent guardians from getting berserk.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9240 54d463be-8e91-2dee-dedb-b68131a5f0ec
Lance %!s(int64=18) %!d(string=hai) anos
pai
achega
6611346270
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      npc/custom/Lance/Sentry.cpp

+ 3 - 0
npc/custom/Lance/Sentry.cpp

@@ -35,6 +35,9 @@
 			AI_ACTION_TYPE_ATTACK; // Define engine callback routines.
 		setmobdata .mob_id[getarg(0)], 26, 1; // Prevents random walking.
 		setmobdata .mob_id[getarg(0)], 10, 1; // Enable AI mode 1.
+		getmobdata .ai_action[getarg(0)], .@temp;
+		set .@temp[9], .@temp[9]^(0x400&.@temp[9]); // Check and remove MD_CHANGECHASE mode flag.
+		setmobdata .mob_id[getarg(0)], 9, .@temp[9];
 		return;
 	}