Fixes MO_CHAINCOMBO and Knuckle weapons

* Adds missing double damage.
* Adjusts hitcount to 6.
Thanks to @Erukanu!
This commit is contained in:
Andreas Jüttner 2021-02-02 14:09:49 +01:00 committed by GitHub
parent 9e182e2af7
commit 905e21a398
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3960,6 +3960,8 @@ static int battle_calc_attack_skill_ratio(struct Damage* wd, struct block_list *
case MO_CHAINCOMBO:
#ifdef RENEWAL
skillratio += 150 + 50 * skill_lv;
if (sd && sd->status.weapon == W_KNUCKLE)
skillratio *= 2;
#else
skillratio += 50 + 50 * skill_lv;
#endif
@ -5639,6 +5641,10 @@ static struct Damage initialize_weapon_data(struct block_list *src, struct block
if (sd && sd->status.weapon == W_DAGGER)
wd.div_ = 2;
break;
case MO_CHAINCOMBO:
if (sd && sd->status.weapon == W_KNUCKLE)
wd.div_ = -6;
break;
#endif
case MH_SONIC_CRAW:{
TBL_HOM *hd = BL_CAST(BL_HOM,src);