瀏覽代碼

Rewrote Improve Dodge flee & speed bonuses

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1297 54d463be-8e91-2dee-dedb-b68131a5f0ec
DracoRPG 20 年之前
父節點
當前提交
31bd250672
共有 2 個文件被更改,包括 5 次插入5 次删除
  1. 3 0
      Changelog-SVN.txt
  2. 2 5
      src/map/status.c

+ 3 - 0
Changelog-SVN.txt

@@ -9,6 +9,9 @@ Date	Added
 	* Fixed @monsterbig/@monstersmall not working [celest]
 	* Fixed @killmonster2 not working [celest]
 	* Fixed a typo in my fix for Stalk / Tunnel Drive increasing instead of decreasing speed, sorry [DracoRPG]
+	* Rewrote a little bit Improve Dodge [DracoRPG]
+	   - The speed bonus does not effect when Cloaked
+	   - Assassins & Rogues get +4 Flee/lv, but all other jobs can get +3/lv if they have the skill (not only Thiefs & Super Novices)
 
 03/24
 	* Added some mapflags for new towns [Lupus]

+ 2 - 5
src/map/status.c

@@ -1034,11 +1034,8 @@ int status_calc_pc(struct map_session_data* sd,int first)
 
 	//Flee��
 	if( (skill=pc_checkskill(sd,TF_MISS))>0 ){	// ‰ñ”ð—¦?‰Á
-		if(sd->status.class_==6||sd->status.class_==4007 || sd->status.class_==23)
-			sd->flee += skill*3;
-		else if(sd->status.class_==12||sd->status.class_==17||sd->status.class_==4013||sd->status.class_==4018)
-			sd->flee += skill*4;
-		if(sd->status.class_==12||sd->status.class_==4013)
+		sd->flee += skill*(sd->status.class_==12 || sd->status.class_==17 || sd->status.class_==4013 || sd->status.class_==4018 ? 4 : 3);
+		if((sd->status.class_==12 || sd->status.class_==4013) && (sd->sc_count && sd->sc_data[SC_CLOAKING].timer==-1))
 			sd->speed -= (short)(skill*1.5/100 * DEFAULT_WALK_SPEED);
 	}
 	if( (skill=pc_checkskill(sd,MO_DODGE))>0 )	// Œ©�Ø‚è