Fix Slug Shot condition (#5556)

* Fixes #5555.
* Slug Shot should do less damage to monsters than players.
Thanks to @Balferian!
This commit is contained in:
Balfear 2020-11-17 17:47:50 +03:00 committed by GitHub
parent 4f853c96e9
commit 4935248f10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4698,7 +4698,7 @@ static int battle_calc_attack_skill_ratio(struct Damage* wd, struct block_list *
skillratio += -100 + 1700 + 200 * skill_lv; skillratio += -100 + 1700 + 200 * skill_lv;
break; break;
case RL_SLUGSHOT: case RL_SLUGSHOT:
if (target->type == BL_PC) if (target->type == BL_MOB)
skillratio += -100 + 1200 * skill_lv; skillratio += -100 + 1200 * skill_lv;
else else
skillratio += -100 + 2000 * skill_lv; skillratio += -100 + 2000 * skill_lv;