From f3e46d6a3817ad724d400d0bd5ab791cb24d98cb Mon Sep 17 00:00:00 2001 From: Haru Date: Sun, 25 Aug 2019 18:19:54 +0200 Subject: Fix the (disabled by default) custom Venom Splasher countdown timer code Signed-off-by: Haru --- src/map/status.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/status.c b/src/map/status.c index ba32b267e..71cce28c5 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -11808,10 +11808,10 @@ static int status_change_timer(int tid, int64 tick, int id, intptr_t data) case SC_SPLASHER: #if 0 // custom Venom Splasher countdown timer - if (sce->val4 % 1000 == 0) { + if (sce->val4 % 1000 == 0 && bl && bl->type == BL_PC) { char counter[10]; snprintf (counter, 10, "%d", sce->val4/1000); - clif->message(bl, counter); + clif->message(BL_UCCAST(BL_PC, bl)->fd, counter); } #endif // 0 if((sce->val4 -= 500) > 0) { -- cgit v1.2.3-60-g2f50