From 5e5321e2588f5bdc076bd4b40c5c585a8a02a56d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 2 Jun 2018 22:02:56 +0300 Subject: Fix map flag pvp_nocalcrank if use at or script command for enable pvp. Fixes #2056 --- src/map/atcommand.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/map/atcommand.c') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 290611c9b..ae0c776c6 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -1606,7 +1606,8 @@ int atcommand_pvpon_sub(struct block_list *bl,va_list ap) sd = BL_UCAST(BL_PC, bl); if (sd->pvp_timer == INVALID_TIMER) { - sd->pvp_timer = timer->add(timer->gettick() + 200, pc->calc_pvprank_timer, sd->bl.id, 0); + if (!map->list[sd->bl.m].flag.pvp_nocalcrank) + sd->pvp_timer = timer->add(timer->gettick() + 200, pc->calc_pvprank_timer, sd->bl.id, 0); sd->pvp_rank = 0; sd->pvp_lastusers = 0; sd->pvp_point = 5; -- cgit v1.2.3-70-g09d2