Explorar el Código

Corrected Endure hit count behavior (#2525)

* Fixes #2508.
* Endure should have 7 hits (instead of 8) in PvM.
Thanks to @kaninhot004!
Aleos hace 7 años
padre
commit
ea0b54e03f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/map/status.c

+ 1 - 1
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) {