Skip to content

Commit

Permalink
Update script
Browse files Browse the repository at this point in the history
  • Loading branch information
Limiana committed Aug 4, 2024
1 parent 5b6ca87 commit f32ca68
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions SplatoonScripts/Duties/Dawntrail/R4S Electrope Edge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace SplatoonScriptsOfficial.Duties.Dawntrail;
public class R4S_Electrope_Edge : SplatoonScript
{
public override HashSet<uint>? ValidTerritories { get; } = [1232];
public override Metadata? Metadata => new(2, "NightmareXIV");
public override Metadata? Metadata => new(3, "NightmareXIV");
List<uint> Hits = [];
List<uint> Longs = [];
uint Debuff = 3999;
Expand Down Expand Up @@ -112,7 +112,9 @@ public override void OnSettingsDraw()
{
ImGui.SetNextItemWidth(150f);
ImGui.Checkbox("Add 1 to long debuff bearers", ref C.AddOne);
ImGuiEx.HelpMarker("If you have long debuff, visually will add 1 to it's count. Does not affects actual functions of the script.");
ImGui.Checkbox("Resolve safe spots", ref C.ResolveBox);
ImGuiEx.HelpMarker("If selected, these safe spots will be highlighted when it's time for you to explode.");

if(C.ResolveBox)
{
Expand Down Expand Up @@ -201,16 +203,13 @@ public override void OnActionEffectEvent(ActionEffectSet set)
{
for(int i = 0; i < set.TargetEffects.Length; i++)
{
if(set.TargetEffects[i].GetSpecificTypeEffect(ActionEffectType.Damage, out var d))
var obj = ((uint)set.TargetEffects[i].TargetID).GetObject();
if(obj?.ObjectKind == ObjectKind.Player)
{
var obj = ((uint)set.TargetEffects[i].TargetID).GetObject();
if(obj?.ObjectKind == ObjectKind.Player)
{
PluginLog.Information($"Registered hit on {obj}");
Hits.Add(obj.EntityId);
}
PluginLog.Information($"Registered hit on {obj}");
Hits.Add(obj.EntityId);
break;
}

}
}
}
Expand Down

0 comments on commit f32ca68

Please sign in to comment.