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!
This commit is contained in:
aleos89
2018-02-20 13:13:48 -05:00
parent 6e5de84a2a
commit 267fd3e6db

View File

@@ -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: