From ea0b54e03f7665f24f63c8d6d7c2ada88ce8c2a5 Mon Sep 17 00:00:00 2001 From: Aleos Date: Thu, 19 Oct 2017 10:14:57 -0400 Subject: [PATCH] Corrected Endure hit count behavior (#2525) * Fixes #2508. * Endure should have 7 hits (instead of 8) in PvM. Thanks to @kaninhot004! --- src/map/status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/status.c b/src/map/status.c index a6e31047fc..d71488554c 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -1685,7 +1685,7 @@ int status_damage(struct block_list *src,struct block_list *target,int64 dhp, in * Endure count is only reduced by non-players on non-gvg maps. * val4 signals infinite endure. **/ - if (src && src->type != BL_PC && !map_flag_gvg2(target->m) && !map[target->m].flag.battleground && --(sce->val2) < 0) + if (src && src->type != BL_PC && !map_flag_gvg2(target->m) && !map[target->m].flag.battleground && --(sce->val2) <= 0) status_change_end(target, SC_ENDURE, INVALID_TIMER); } if ((sce=sc->data[SC_GRAVITATION]) && sce->val3 == BCT_SELF) {