summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-29 18:44:00 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-29 18:44:00 +0000
commit641f0c27624a0d9c6ebfd4280824bf7f594f868c (patch)
treecca3e32a335090bf0629fbdc8307f53e70fd7331
parent7c4d552557b50a2dc9d10fc02cae096ee8410406 (diff)
downloadhercules-641f0c27624a0d9c6ebfd4280824bf7f594f868c.tar.gz
hercules-641f0c27624a0d9c6ebfd4280824bf7f594f868c.tar.bz2
hercules-641f0c27624a0d9c6ebfd4280824bf7f594f868c.tar.xz
hercules-641f0c27624a0d9c6ebfd4280824bf7f594f868c.zip
* Small fix in TK_MISSION from 1/101 to 1/100 probability. (Valaris)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9594 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt1
-rw-r--r--src/map/skill.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 7d3efc38c..cbb022e92 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -6,6 +6,7 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/12/29
* Skill use is now cancelled when you use it while cloaking, and the
uncloaking process warps you. [Skotlex]
+ * Small fix in TK_MISSION from 1/101 to 1/100 probability. (Valaris) [Lance]
2006/12/28
* Reapplied Skotlex's socket.c changes from r9587 and r9582. :S
* Part 3 of TheUltraMage's socket cleanup.
diff --git a/src/map/skill.c b/src/map/skill.c
index 26bef8e8e..d66c1ab67 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -3830,7 +3830,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
case TK_MISSION:
if (sd) {
int id;
- if (sd->mission_mobid && (sd->mission_count || rand()%100)) { //Cannot change target when already have one
+ if (sd->mission_mobid && (sd->mission_count || rand()%99)) { //Cannot change target when already have one
clif_mission_info(sd, sd->mission_mobid, sd->mission_count);
clif_skill_fail(sd,skillid,0,0);
break;