Fixed Estun not damaging all monsters (#5293)

*Estun should damage monsters of all sizes, but only stun medium sized monsters
This commit is contained in:
Daegaladh 2020-08-06 00:12:02 +02:00 committed by GitHub
parent 583589329d
commit ec479635c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6320,8 +6320,8 @@ struct Damage battle_calc_magic_attack(struct block_list *src,struct block_list
case SL_STIN: //Target size must be small (0) for full damage case SL_STIN: //Target size must be small (0) for full damage
skillratio += (tstatus->size != SZ_SMALL ? -99 : 10 * skill_lv); skillratio += (tstatus->size != SZ_SMALL ? -99 : 10 * skill_lv);
break; break;
case SL_STUN: //Full damage is dealt on small/medium targets case SL_STUN:
skillratio += (tstatus->size != SZ_BIG ? 5 * skill_lv : -99); skillratio += 5 * skill_lv;
break; break;
case SL_SMA: //Base damage is 40% + lv% case SL_SMA: //Base damage is 40% + lv%
skillratio += -60 + status_get_lv(src); skillratio += -60 + status_get_lv(src);