summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-02 01:49:27 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-02 01:49:27 +0000
commit80ee93f183303ccc188fdc587bd25330a192b4e6 (patch)
tree20633bcdda78d66281cfeea577d202132877f9f4 /src/map/script.c
parentc9fa0221f3c171550b99772b2c3eafec0e02bbb8 (diff)
downloadhercules-80ee93f183303ccc188fdc587bd25330a192b4e6.tar.gz
hercules-80ee93f183303ccc188fdc587bd25330a192b4e6.tar.bz2
hercules-80ee93f183303ccc188fdc587bd25330a192b4e6.tar.xz
hercules-80ee93f183303ccc188fdc587bd25330a192b4e6.zip
- Fixed passive mobs becoming increasingly unlikely to retaliate to attacks after they got inflicted by a disabling status change.
- Changed the "is_boss" define to check for mode MD_BOSS instead of giving mvp exp. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9384 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/script.c b/src/map/script.c
index fee8efa5d..56547df55 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -10353,8 +10353,8 @@ int buildin_select(struct script_state *st)
clif_scriptmenu(sd,st->oid,buf);
aFree(buf);
} else if(sd->npc_menu==0xff){
- sd->state.menu_or_input=0;
- st->state=END;
+ sd->state.menu_or_input=0;
+ st->state=END;
} else {
//Skip empty menu entries which weren't displayed on the client (Skotlex)
for(i=st->start+2;i< (st->start+2+sd->npc_menu) && sd->npc_menu < (st->end-st->start-2);i++) {
@@ -10365,8 +10365,8 @@ int buildin_select(struct script_state *st)
pc_setreg(sd,add_str((unsigned char *) "@menu"),sd->npc_menu);
sd->state.menu_or_input=0;
push_val(st->stack,C_INT,sd->npc_menu);
- }
- return 0;
+ }
+ return 0;
}
int buildin_prompt(struct script_state *st)