ZombieManager: dis makes more sense

This commit is contained in:
dogan 2020-08-06 03:14:37 +02:00
parent bdf49aea9a
commit 01cbaa98c7

View File

@ -262,7 +262,7 @@ public Action OnPlayerHurt(Event event, const char[] name, bool dontBroadcast)
int attacker = GetClientOfUserId(GetEventInt(event, "attacker"));
int damage = GetEventInt(event, "dmg_health");
if(!IsClientInGame(client) || !IsPlayerAlive(client) || !ZR_IsClientZombie(client) || GetClientHealth(client) <= 100)
if(!IsClientInGame(client) || !IsPlayerAlive(client) || !ZR_IsClientZombie(client) || GetClientHealth(client) <= g_iZHPMax[client])
return Plugin_Continue;
if(g_iZShield[client] > 0 && attacker != 0)