summaryrefslogtreecommitdiff
path: root/npc/custom
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-17 12:44:08 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-17 12:44:08 +0000
commitfce7bbbc1e5db15e7a0500427265f18a577e2f14 (patch)
treebc78af8e36cf432c89a80552e8fb43721fd8c46a /npc/custom
parenta2ec6edbeff155cc88e87a01f1993c1f143829e7 (diff)
downloadhercules-fce7bbbc1e5db15e7a0500427265f18a577e2f14.tar.gz
hercules-fce7bbbc1e5db15e7a0500427265f18a577e2f14.tar.bz2
hercules-fce7bbbc1e5db15e7a0500427265f18a577e2f14.tar.xz
hercules-fce7bbbc1e5db15e7a0500427265f18a577e2f14.zip
Check and remove MD_CHANGECHASE flag to prevent guardians from getting berserk.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9240 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/custom')
-rw-r--r--npc/custom/Lance/Sentry.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/npc/custom/Lance/Sentry.cpp b/npc/custom/Lance/Sentry.cpp
index 1468c139b..5666e1647 100644
--- a/npc/custom/Lance/Sentry.cpp
+++ b/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;
}