Prechádzať zdrojové kódy

* Small fix in TK_MISSION from 1/101 to 1/100 probability. (Valaris)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9594 54d463be-8e91-2dee-dedb-b68131a5f0ec
Lance 18 rokov pred
rodič
commit
f2df4e5b2a
2 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 1 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/skill.c

+ 1 - 0
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.

+ 1 - 1
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;