diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-12 22:48:56 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-12 22:48:56 +0000 |
commit | 96dd8cdf7ac9778cbb84b7c67f65296b8f723eb5 (patch) | |
tree | 7a4d8210878c359c60f51c4882253c5565f1cff9 /src/map/mob.c | |
parent | 2b9e300e11b6b36fbbf3626b205b89e84ec4b3ee (diff) | |
download | hercules-96dd8cdf7ac9778cbb84b7c67f65296b8f723eb5.tar.gz hercules-96dd8cdf7ac9778cbb84b7c67f65296b8f723eb5.tar.bz2 hercules-96dd8cdf7ac9778cbb84b7c67f65296b8f723eb5.tar.xz hercules-96dd8cdf7ac9778cbb84b7c67f65296b8f723eb5.zip |
- cleaned up homshuffle and fixed a possible crash in it.
- Updated the skill_delayfix function to behave as recently discovered by Tharis: Skills with no delay set will use amotion ONLY if the skill was instant-casted.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11433 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 2fb8405cd..a21659466 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -3007,8 +3007,8 @@ int mob_clone_spawn(struct map_session_data *sd, int m, int x, int y, const char ms[i].permillage = 500*battle_config.mob_skill_rate/100; //Default chance of all skills: 5% ms[i].emotion = -1; ms[i].cancel = 0; - ms[i].delay = 5000+skill_delayfix(&sd->bl,skill_id, ms[i].skill_lv); ms[i].casttime = skill_castfix(&sd->bl,skill_id, ms[i].skill_lv); + ms[i].delay = 5000+skill_delayfix(&sd->bl,skill_id, ms[i].skill_lv, ms[i].casttime == 0); inf = skill_get_inf(skill_id); if (inf&INF_ATTACK_SKILL) { |