Skip to content

Commit

Permalink
Fixes #882
Browse files Browse the repository at this point in the history
* Resolves a potential crash with Soul Exhale and SC_NORECOVER_STATE. Thanks to @stmarier and @mrjnumber1.
  • Loading branch information
aleos89 committed Jan 7, 2016
1 parent 4c6cf46 commit 9b48263
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/map/skill.c
Original file line number Diff line number Diff line change
Expand Up @@ -8105,13 +8105,13 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, ui
sp1 = sstatus->sp;
sp2 = tstatus->sp;
#ifdef RENEWAL
sp1 = sp1 / 2;
sp2 = sp2 / 2;
if( tsc && tsc->data[SC_EXTREMITYFIST2] )
sp1 = tstatus->sp;
sp1 = sp1 / 2;
sp2 = sp2 / 2;
if (tsc && tsc->data[SC_EXTREMITYFIST2])
sp1 = tstatus->sp;
#endif
if (tsc->data[SC_NORECOVER_STATE])
sp1 = tstatus->sp;
if (tsc && tsc->data[SC_NORECOVER_STATE])
sp1 = tstatus->sp;
status_set_sp(src, sp2, 3);
status_set_sp(bl, sp1, 3);
clif_skill_nodamage(src,bl,skill_id,skill_lv,1);
Expand Down

0 comments on commit 9b48263

Please sign in to comment.