Skip to content

Commit

Permalink
Corrected Tension Relax HP regeneration while overweight (fixes #1177)
Browse files Browse the repository at this point in the history
* When Tension Relax ends so should the HP regeneration bonus.
  • Loading branch information
aleos89 committed May 1, 2016
1 parent d36610d commit abaed18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/map/status.c
Expand Up @@ -11488,6 +11488,10 @@ int status_change_end_(struct block_list* bl, enum sc_type type, int tid, const
status_change_end(tbl, SC_STOP, INVALID_TIMER);
}
break;
case SC_TENSIONRELAX:
if (sc && (sc->data[SC_WEIGHT50] || sc->data[SC_WEIGHT90]))
status_get_regen_data(bl)->state.overweight = 1; // Add the overweight flag back
break;
case SC_MONSTER_TRANSFORM:
if (sce->val2)
status_change_end(bl, (sc_type)sce->val2, INVALID_TIMER);
Expand Down

0 comments on commit abaed18

Please sign in to comment.