diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-09-08 17:56:10 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-09-08 17:56:10 +0000 |
commit | 9e9b198e6d0b810fa52f888b32653b5370fe65b3 (patch) | |
tree | fe159691dcb4d23012aa36629a01fe8fd0b4e234 /src/map/unit.c | |
parent | 12d38f5b4469d69e4659838e22cf32387fcc0a0f (diff) | |
download | hercules-9e9b198e6d0b810fa52f888b32653b5370fe65b3.tar.gz hercules-9e9b198e6d0b810fa52f888b32653b5370fe65b3.tar.bz2 hercules-9e9b198e6d0b810fa52f888b32653b5370fe65b3.tar.xz hercules-9e9b198e6d0b810fa52f888b32653b5370fe65b3.zip |
- Removed sg_miracle_skill_duration, replaced it with sg_miracle_skill_min_duration and sg_miracle_skill_max_duration, to specify a range for the duration of the skill.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8679 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 2db6108aa..cfa7be2da 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -190,7 +190,9 @@ static int unit_walktoxy_timer(int tid,unsigned int tick,int id,int data) rand()%10000 < battle_config.sg_miracle_skill_ratio ) { //SG_MIRACLE [Komurka] clif_displaymessage(sd->fd,"[Miracle of the Sun, Moon and Stars]"); - sc_start(&sd->bl,SC_MIRACLE,100,1,battle_config.sg_miracle_skill_duration); + sc_start(&sd->bl,SC_MIRACLE,100,1, + battle_config.sg_miracle_skill_duration_min+ + rand()%battle_config.sg_miracle_skill_duration_max); } } else if (md) { if(battle_config.mob_warp&1 && map_getcell(bl->m,x,y,CELL_CHKNPC) && |