diff --git a/l4d2_tank_draw/scripting/lib/lucky_draw.sp b/l4d2_tank_draw/scripting/lib/lucky_draw.sp index 7ce093a..9dfc473 100644 --- a/l4d2_tank_draw/scripting/lib/lucky_draw.sp +++ b/l4d2_tank_draw/scripting/lib/lucky_draw.sp @@ -60,7 +60,10 @@ stock Action LuckyDraw(int victim, int attacker) { for (int i = 1; i <= MaxClients; i++) { - SetDrug(i, DrugAllSurvivorDuration.IntValue); + if (IsValidAliveClient(i)) + { + SetDrug(i, DrugAllSurvivorDuration.IntValue); + } } CPrintToChatAll("%t", "TankDrawResult_DrugAll", attackerName, DrugAllSurvivorDuration.IntValue);