diff options
author | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-25 12:04:09 +0000 |
---|---|---|
committer | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-25 12:04:09 +0000 |
commit | 952432e5f073fa9d840ff4acdb3abfc53335a5d3 (patch) | |
tree | e5df047ce97470d4ace9396a9ae53157290464fa /src/map/battle.c | |
parent | 61c9ecdec07f41a48e65a238d7f7338bb543c4e7 (diff) | |
download | hercules-952432e5f073fa9d840ff4acdb3abfc53335a5d3.tar.gz hercules-952432e5f073fa9d840ff4acdb3abfc53335a5d3.tar.bz2 hercules-952432e5f073fa9d840ff4acdb3abfc53335a5d3.tar.xz hercules-952432e5f073fa9d840ff4acdb3abfc53335a5d3.zip |
* Fixed mob control commands.
* Fixed memory leak in scripts (again). Still have a few lying.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6749 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 41c2f9c16..b1e211189 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -3439,7 +3439,7 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f else
state |= BCT_ENEMY; //However, all else are enemies.
} else {
- if (t_bl->type == BL_MOB && !((TBL_MOB*)t_bl)->special_state.ai)
+ //if (t_bl->type == BL_MOB && !((TBL_MOB*)t_bl)->special_state.ai)
state |= BCT_ENEMY; //Natural enemy for AI mobs are normal mobs.
}
if (md->master_id && (s_bl = map_id2bl(md->master_id)) == NULL)
|