summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-04 20:19:03 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-04 20:19:03 +0000
commit073f3008fea5091022b9940c2e86bce64f5411e0 (patch)
tree50014f5ddb61c1ababd13e7ab768c2ecc4c1a44b /src/map/skill.c
parent13a7d58c1db0aca8b86a87e5a4fc799db9743fcd (diff)
downloadhercules-073f3008fea5091022b9940c2e86bce64f5411e0.tar.gz
hercules-073f3008fea5091022b9940c2e86bce64f5411e0.tar.bz2
hercules-073f3008fea5091022b9940c2e86bce64f5411e0.tar.xz
hercules-073f3008fea5091022b9940c2e86bce64f5411e0.zip
- Cleaned up and used mob_skill_event function when hit by a ground-skill.
- Added one grace range in the mob_loot search function which should fix mob_can_reach failing when invoked with the same distance that distance_bl returned. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6475 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index d6b18f158..edf39a2c9 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -7096,18 +7096,8 @@ int skill_unit_onplace_timer(struct skill_unit *src,struct block_list *bl,unsign
sc->data[SC_MAGICPOWER].timer = -1;
}
- if (bl->type == BL_MOB && ss != bl) { /* ƒXƒLƒ‹Žg—p?Œ?‚ÌMOBƒXƒLƒ‹ */
- struct mob_data *md = (struct mob_data *)bl;
- if (!md) return 0;
- if (battle_config.mob_changetarget_byskill == 1) {
- int target = md->target_id;
- if (ss->type == BL_PC)
- md->target_id = ss->id;
- mobskill_use(md, tick, MSC_SKILLUSED|(skillid << 16));
- md->target_id = target;
- } else
- mobskill_use(md, tick, MSC_SKILLUSED|(skillid << 16));
- }
+ if (bl->type == BL_MOB && ss != bl)
+ mobskill_event((TBL_MOB*)bl, ss, tick, MSC_SKILLUSED|(skillid<<16));
return skillid;
}