From 391f0d68fdfb64ab8b41f782b8156f9d3c6d3e3f Mon Sep 17 00:00:00 2001 From: aleos89 Date: Mon, 12 Sep 2016 11:04:01 -0400 Subject: [PATCH] Fixed map-server errors from Cloud Kill (fixes #1553) * Resolves the Cloud Kill status trying to add a timer to a dead target. --- src/map/status.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/map/status.c b/src/map/status.c index 2a3ba6e1ee..f12b62b3d9 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -12609,7 +12609,8 @@ int status_change_timer(int tid, unsigned int tick, int id, intptr_t data) map_freeblock_lock(); dounlock = true; skill_attack(skill_get_type(status_sc2skill(type)), src, unit_bl, bl, SO_CLOUD_KILL, sce->val1, tick, 0); - sc_timer_next(500 + tick, status_change_timer, bl->id, data); + if (!status_isdead(bl)) + sc_timer_next(500 + tick, status_change_timer, bl->id, data); } } break;