Skip to content

Commit

Permalink
Fixed map-server errors from Cloud Kill (fixes #1553)
Browse files Browse the repository at this point in the history
* Resolves the Cloud Kill status trying to add a timer to a dead target.
  • Loading branch information
aleos89 committed Sep 12, 2016
1 parent 64e1593 commit 391f0d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/map/status.c
Expand Up @@ -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;
Expand Down

0 comments on commit 391f0d6

Please sign in to comment.