summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-07-31 05:37:40 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-07-31 05:37:40 +0000
commit51680d33aa582128f94a6091fba2e203ebba8faa (patch)
treee4e3ac63e0cf1b77468f9d593fcc8cc51638cb17 /src/map/battle.c
parentb0931e719ce6db2f887e752b1cf55424857a9a1f (diff)
downloadhercules-51680d33aa582128f94a6091fba2e203ebba8faa.tar.gz
hercules-51680d33aa582128f94a6091fba2e203ebba8faa.tar.bz2
hercules-51680d33aa582128f94a6091fba2e203ebba8faa.tar.xz
hercules-51680d33aa582128f94a6091fba2e203ebba8faa.zip
Removed the mob controller system, now a customization (see topic:194375).
The system consists of * script command to spawn a controlled mob * script commands to attach npcs to such mobs and manipulate their AI * a page of documentation for these commands * callbacks at various source code locations that invoke the attached npcs * two npc examples git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13021 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 98fc40062..cf7a64c0f 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -3209,9 +3209,7 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f
TBL_MOB*md = (TBL_MOB*)s_bl;
if (!(agit_flag && map[m].flag.gvg_castle) && md->guardian_data && md->guardian_data->guild_id)
return 0; //Disable guardians/emperium owned by Guilds on non-woe times.
- if(md->state.killer/* || !(battle_config.mob_ai&0x400)*/)
- state |= BCT_ENEMY; //By default everyone hates mobs.
- else
+
{ //Smart enemy criteria.
if (!md->special_state.ai) { //Normal mobs.
if (t_bl->type == BL_MOB && !((TBL_MOB*)t_bl)->special_state.ai)