Resolved renewal ASPD and two-handed weapons (#2933)

* Fixes #2930.
* Follow up to 267fd3e.
* Fixes ASPD dropping drastically for two-handed weapons.
Thanks to @luan122 and @Tokeiburu!
This commit is contained in:
Aleos 2018-02-27 13:49:53 -05:00 committed by GitHub
parent a0a55dada1
commit 31e2871d7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2354,7 +2354,7 @@ int status_base_amotion_pc(struct map_session_data* sd, struct status_data* stat
amotion = job_info[classidx].aspd_base[sd->weapontype1]; // Single weapon
if (sd->status.shield)
amotion += job_info[classidx].aspd_base[MAX_WEAPON_TYPE];
else if (sd->weapontype2)
else if (sd->weapontype2 && sd->equip_index[EQI_HAND_R] != sd->equip_index[EQI_HAND_L])
amotion += job_info[classidx].aspd_base[sd->weapontype2] / 4; // Dual-wield
switch(sd->status.weapon) {