diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-15 21:45:19 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-15 21:45:19 +0000 |
commit | e2d3ae9dc682afc1ac34a536006ef79370040b04 (patch) | |
tree | 44e74037c0f5645b1e8d56ae6b2c9fdb602e9e05 /src/map/mob.c | |
parent | 065f2203b8aa2140e55c0ef62ad0ad2e5ea4d088 (diff) | |
download | hercules-e2d3ae9dc682afc1ac34a536006ef79370040b04.tar.gz hercules-e2d3ae9dc682afc1ac34a536006ef79370040b04.tar.bz2 hercules-e2d3ae9dc682afc1ac34a536006ef79370040b04.tar.xz hercules-e2d3ae9dc682afc1ac34a536006ef79370040b04.zip |
- The NPC elemental attacks will display a skill animation again.
- Mob instant cast skills will use their adelay now.
- Spirit of Wizard won't work on Ganbantein
- The pc normalize job function will consider you as novice if you don't have maxed out basic skill.
- Cleaned up pc_calc_skilltree and related functions so that the id is left as 0 when you can't raise the skill even if you meet the prerequisites. This is to prevent raising quest/soul/marriage skills through packets.
- Slaves should lock unto their master's target even if they are not attacking yet (eg: in chase mode)
- Updated the Summon Slave skill to use the slave distance define as valid distance to spawn from master.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9656 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 1f3bf4cf7..d7e6f9592 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -957,7 +957,7 @@ static int mob_ai_sub_hard_slavemob(struct mob_data *md,unsigned int tick) if (ud) { struct block_list *tbl=NULL; - if (ud->target && ud->attacktimer != -1) + if (ud->target && ud->state.attack_continue) tbl=map_id2bl(ud->target); else if (ud->skilltarget) { tbl = map_id2bl(ud->skilltarget); @@ -2466,7 +2466,7 @@ int mob_summonslave(struct mob_data *md2,int *value,int amount,int skill_id) if (mobdb_checkid(data.class_) == 0) continue; - if (map_search_freecell(&md2->bl, 0, &x, &y, 4, 4, 0)) { + if (map_search_freecell(&md2->bl, 0, &x, &y, MOB_SLAVEDISTANCE, MOB_SLAVEDISTANCE, 0)) { data.x = x; data.y = y; } else { |