瀏覽代碼

Fixed bugreport:2101 and bugreport:4216 where Cracker doesn't stun players. Per official standards it does.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16659 54d463be-8e91-2dee-dedb-b68131a5f0ec
cookiecrumbs 12 年之前
父節點
當前提交
f0c8989cb0
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      src/map/skill.c

+ 2 - 3
src/map/skill.c

@@ -7162,15 +7162,14 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
 		break;
 
 	case GS_CRACKER:
-		if (!dstsd)	// according to latest patch, should not work on players [Reddozen]
+		/* per official standards, this skill works on players and mobs. */
+		if (sd && (dstsd || dstmd))
 		{
 			i =65 -5*distance_bl(src,bl); //Base rate
 			if (i < 30) i = 30;
 			clif_skill_nodamage(src,bl,skillid,skilllv,1);
 			sc_start(bl,SC_STUN, i,skilllv,skill_get_time2(skillid,skilllv));
 		}
-		else if (sd)
-			clif_skill_fail(sd,skillid,USESKILL_FAIL_LEVEL,0);
 		break;
 
 	case AM_CALLHOMUN:	//[orn]