diff --git a/plugins/l4d2_feedthetrolls.smx b/plugins/l4d2_feedthetrolls.smx index c90d9cb..d1064bf 100644 Binary files a/plugins/l4d2_feedthetrolls.smx and b/plugins/l4d2_feedthetrolls.smx differ diff --git a/scripting/include/feedthetrolls/base.inc b/scripting/include/feedthetrolls/base.inc index f50b510..93cfa06 100644 --- a/scripting/include/feedthetrolls/base.inc +++ b/scripting/include/feedthetrolls/base.inc @@ -418,7 +418,6 @@ bool IsTrollActive(int client, const char[] troll) { } static int i = 0; if(trollKV.GetValue(troll, i)) { - PrintToChatAll("index: %d. val: %d", i, Trolls[i].activeFlagClients[client] ); return Trolls[i].activeFlagClients[client] != -1; } ThrowError("Troll \"%s\" does not exist", troll); diff --git a/scripting/include/feedthetrolls/misc.inc b/scripting/include/feedthetrolls/misc.inc index ffa503e..92d3d4a 100644 --- a/scripting/include/feedthetrolls/misc.inc +++ b/scripting/include/feedthetrolls/misc.inc @@ -503,9 +503,9 @@ int GetRandomThrowableMagnetTarget(ProjectileMagnetType type, int owner = -1) { ArrayList checkList = new ArrayList(); for(int i = 1; i <= MaxClients; i++) { if(IsClientConnected(i) && IsClientInGame(i) && IsPlayerAlive(i) && Trolls[throwMagnetIndex].IsActive(i)) { - if(type == ProjType_Survivors && owner != i) { + if(type == ProjType_Survivors) { // If the projectile is not owned by player, check if troll flag not enabled - if(~Trolls[throwMagnetIndex].activeFlagClients[i] & view_as(ProjType_Survivors)) continue; + if(owner != i && ~Trolls[throwMagnetIndex].activeFlagClients[i] & view_as(ProjType_Survivors)) continue; } else if(~Trolls[throwMagnetIndex].activeFlagClients[i] & view_as(type)) { // Skip if client does not have flag continue;