Refactor Jackal skill to affect all opponents and add alternative skill button

This commit is contained in:
Juzlus 2025-09-06 04:30:57 +02:00
parent db3bb38d9b
commit ca73bf50ac
29 changed files with 136 additions and 120 deletions

View file

@ -91,7 +91,7 @@ namespace jRandomSkills
SkillUtils.PrintToChat(player, Localization.GetTranslation("poison") + ":", false);
player.PrintToChat($" {ChatColors.Green}{Localization.GetTranslation("poison_select_info")}");
var enemies = Utilities.GetPlayers().Where(p => p.Team != player.Team && p.IsValid && !p.IsBot).ToArray();
var enemies = Utilities.GetPlayers().Where(p => p.Team != player.Team && p.IsValid && !p.IsBot && !p.IsHLTV && p.Team != CsTeam.Spectator).ToArray();
if (enemies.Length > 0)
{
foreach (var enemy in enemies)