From 9d73a996d9edba1da1f36461f3838d5571a781a3 Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 3 Mar 2006 17:15:09 +0000 Subject: - Added event 8 for mobspawns that should spawn with special ai set. - Modified battle_check_target so that mobs with special ai's default enemy are mobs with no special ai. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5448 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/npc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/map/npc.c') diff --git a/src/map/npc.c b/src/map/npc.c index c511c8de4..3c3967762 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -2313,12 +2313,14 @@ int npc_parse_mob2 (struct mob_list *mob, int cached) if (strlen(mob->eventname) >= 4) { memcpy(md->npc_event, mob->eventname, NAME_LENGTH-1); - } else if (strlen(mob->eventname) == 1) { //Portable monster big/small implementation. [Skotlex] + } else if (strlen(mob->eventname) <= 2) { //Portable monster big/small implementation. [Skotlex] int size = atoi(mob->eventname); if (size & 2) md->special_state.size=1; else if (size & 4) md->special_state.size=2; + if (size & 8) + md->special_state.ai=1; } md->bl.type = BL_MOB; -- cgit v1.2.3-70-g09d2