소스 검색

Corrected renewal ASPD off-hand calculation
* The case of unarmed and weapon (off-hand) resulted in the ASPD not being calculated properly.
* kRO includes the 1/4th ASPD penalty for off-hand weapons.
Thanks to @Tokeiburu!

aleos89 7 년 전
부모
커밋
267fd3e6db
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/map/status.cpp

+ 2 - 2
src/map/status.cpp

@@ -2352,10 +2352,10 @@ int status_base_amotion_pc(struct map_session_data* sd, struct status_data* stat
 	float temp_aspd = 0;
 
 	amotion = job_info[classidx].aspd_base[sd->weapontype1]; // Single weapon
-	if (sd->status.weapon > MAX_WEAPON_TYPE)
-		amotion += job_info[classidx].aspd_base[sd->weapontype2] / 4; // Dual-wield
 	if (sd->status.shield)
 		amotion += job_info[classidx].aspd_base[MAX_WEAPON_TYPE];
+	else if (sd->status.weapon2)
+		amotion += job_info[classidx].aspd_base[sd->weapontype2] / 4; // Dual-wield
 
 	switch(sd->status.weapon) {
 		case W_BOW: