Skip to content

Commit

Permalink
Merge pull request #129 from Garume/garume/fix-raining-cats
Browse files Browse the repository at this point in the history
Fix Raining Cats script
  • Loading branch information
Limiana authored Aug 14, 2024
2 parents abe602b + 5059b58 commit 1e11859
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SplatoonScripts/Duties/Dawntrail/R1S Raining Cats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public unsafe class R1S_Raining_Cats : SplatoonScript
private readonly List<IPlayerCharacter> TetheredPlayers = new(2);

public override HashSet<uint>? ValidTerritories { get; } = new() { 1226 };
public override Metadata Metadata => new(1, "Garume");
public override Metadata Metadata => new(2, "Garume");

private IBattleNpc? BlackCat => Svc.Objects.OfType<IBattleNpc>()
.FirstOrDefault(x => x is { IsTargetable: true, NameId: BlackCatNameId });
Expand Down Expand Up @@ -56,7 +56,7 @@ public override void OnUpdate()

var players = Svc.Objects
.OfType<IPlayerCharacter>()
.Where(x => !TetheredPlayers.Contains(x) && !x.IsDead)
.Where(x => !x.IsDead)
.OrderBy(x => Vector3.Distance(x.Position, BlackCat.Position))
.ToList();

Expand Down

0 comments on commit 1e11859

Please sign in to comment.