From 267fd3e6db739db75771e75fe4aad7265200eec2 Mon Sep 17 00:00:00 2001 From: aleos89 Date: Tue, 20 Feb 2018 13:13:48 -0500 Subject: [PATCH] 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! --- src/map/status.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/status.cpp b/src/map/status.cpp index 32eea3cd04..5ce9d914aa 100644 --- a/src/map/status.cpp +++ b/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: