- Now mobs won't do a distance check to lose their target on every ai iteration, but only when they finish walking (unless you set monster_ai&1)
- The chase distance before a mob gives up following a player has been increased from view-size (range2) to min-chase (range3). git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8773 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
7ad8d4effa
commit
3d19bd2c4e
@ -4,6 +4,11 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
|
|||||||
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
|
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
|
||||||
|
|
||||||
2006/09/15
|
2006/09/15
|
||||||
|
* Now mobs won't do a distance check to lose their target on every ai
|
||||||
|
iteration, but only when they finish walking (unless you set monster_ai&1)
|
||||||
|
[Skotlex]
|
||||||
|
* The chase distance before a mob gives up following a player has been
|
||||||
|
increased from view-size (range2) to min-chase (range3). [Skotlex]
|
||||||
* Reverted the Summon Flora change where all plants were being summoned in
|
* Reverted the Summon Flora change where all plants were being summoned in
|
||||||
one go. [Skotlex]
|
one go. [Skotlex]
|
||||||
* Moved the weapon repair effect to where it belongs (after successfully
|
* Moved the weapon repair effect to where it belongs (after successfully
|
||||||
|
@ -1081,7 +1081,7 @@ static int mob_ai_sub_hard(struct block_list *bl,va_list ap)
|
|||||||
tbl = map_id2bl(md->target_id);
|
tbl = map_id2bl(md->target_id);
|
||||||
if (!tbl || tbl->m != md->bl.m ||
|
if (!tbl || tbl->m != md->bl.m ||
|
||||||
(md->ud.attacktimer == -1 && !status_check_skilluse(&md->bl, tbl, 0, 0)) ||
|
(md->ud.attacktimer == -1 && !status_check_skilluse(&md->bl, tbl, 0, 0)) ||
|
||||||
(md->ud.walktimer != -1 && !check_distance_bl(&md->bl, tbl, md->min_chase)) ||
|
(md->ud.walktimer != -1 && !(battle_config.mob_ai&1) && !check_distance_bl(&md->bl, tbl, md->min_chase)) ||
|
||||||
(
|
(
|
||||||
tbl->type == BL_PC && !(mode&MD_BOSS) &&
|
tbl->type == BL_PC && !(mode&MD_BOSS) &&
|
||||||
((TBL_PC*)tbl)->state.gangsterparadise
|
((TBL_PC*)tbl)->state.gangsterparadise
|
||||||
|
@ -197,7 +197,7 @@ static int unit_walktoxy_timer(int tid,unsigned int tick,int id,int data)
|
|||||||
if(battle_config.mob_warp&1 && map_getcell(bl->m,x,y,CELL_CHKNPC) &&
|
if(battle_config.mob_warp&1 && map_getcell(bl->m,x,y,CELL_CHKNPC) &&
|
||||||
npc_touch_areanpc2(bl)) // Enable mobs to step on warps. [Skotlex]
|
npc_touch_areanpc2(bl)) // Enable mobs to step on warps. [Skotlex]
|
||||||
return 0;
|
return 0;
|
||||||
if (md->min_chase > md->db->range2) md->min_chase--;
|
if (md->min_chase > md->db->range3) md->min_chase--;
|
||||||
//Walk skills are triggered regardless of target due to the idle-walk mob state.
|
//Walk skills are triggered regardless of target due to the idle-walk mob state.
|
||||||
//But avoid triggering on stop-walk calls.
|
//But avoid triggering on stop-walk calls.
|
||||||
if(tid != -1 &&
|
if(tid != -1 &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user