Skip to content

Commit

Permalink
Fixed server crash when monster use blacksmith skills (fixes #930)
Browse files Browse the repository at this point in the history
* Special thanks @reunite-ro
  • Loading branch information
Playtester committed Jan 25, 2016
1 parent 5971745 commit ec14901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/skill.c
Original file line number Diff line number Diff line change
Expand Up @@ -6810,7 +6810,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, ui
case BS_OVERTHRUST:
if (sd == NULL || sd->status.party_id == 0 || (flag & 1)) {
int weapontype = skill_get_weapontype(skill_id);
if (!weapontype || pc_check_weapontype(dstsd, weapontype)) {
if (!weapontype || !dstsd || pc_check_weapontype(dstsd, weapontype)) {
clif_skill_nodamage(bl, bl, skill_id, skill_lv,
sc_start2(src, bl, type, 100, skill_lv, (src == bl) ? 1 : 0, skill_get_time(skill_id, skill_lv)));
}
Expand Down

0 comments on commit ec14901

Please sign in to comment.