Fixed Sonic Blow related map server crash (#8203)

- Fixes #8202
- Follow-up to 7d9a23d
This commit is contained in:
Playtester 2024-03-29 19:28:55 +01:00 committed by GitHub
parent 43d4e071df
commit 8a109071a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1435,7 +1435,7 @@ int skill_additional_effect( struct block_list* src, struct block_list *bl, uint
case AS_SONICBLOW:
case HN_MEGA_SONIC_BLOW:
if (!map_flag_gvg2(bl->m) && !map_getmapflag(bl->m, MF_BATTLEGROUND) && sc->getSCE(SC_SPIRIT)->val2 == SL_ASSASIN)
if (!map_flag_gvg2(bl->m) && !map_getmapflag(bl->m, MF_BATTLEGROUND) && sc && sc->getSCE(SC_SPIRIT) && sc->getSCE(SC_SPIRIT)->val2 == SL_ASSASIN)
sc_start(src, bl, SC_STUN, (4 * skill_lv + 20), skill_lv, skill_get_time2(skill_id, skill_lv)); //Link gives double stun chance outside GVG/BG
else
sc_start(src, bl, SC_STUN, (2 * skill_lv + 10), skill_lv, skill_get_time2(skill_id, skill_lv));