Skip to content

Commit

Permalink
[fix] Response to review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Redmoonwow committed Aug 22, 2024
1 parent fb57c0c commit 492298e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Splatoon/Memory/AttachedInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ static void Tick(object _)
{
text = $"{b.Name} starts casting {b.CastActionId} ({b.NameId}>{b.CastActionId})";
}
ScriptingProcessor.OnStartingCast(b.DataId, b.CastActionId);
ScriptingProcessor.OnStartingCast(b.EntityId, b.CastActionId);
P.ChatMessageQueue.Enqueue(text);
if (P.Config.Logging)
{
Expand Down
12 changes: 7 additions & 5 deletions SplatoonScripts/Duties/Dawntrail/R2S Venom Love Pair Split.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ private enum PairSplit
}
public override HashSet<uint>? ValidTerritories { get; } = [1228];

public override Metadata? Metadata => new(1, "Redmoon");
public override Metadata? Metadata => new(2, "Redmoon");

const uint PoisonResistanceDownDebuffID = 3935;
bool IsShow = false;
Expand All @@ -38,8 +38,12 @@ public override void OnSetup()

public override void OnStartingCast(uint source, uint castId)
{
PluginLog.Log($"StartingCast {source} {castId}");
if (source == 0 || source != 16941) return;
var sourceObj = source.GetObject();
if (sourceObj == null)
return;

if (sourceObj.DataId == 0 || sourceObj.DataId != 16941)
return;

if ((castId == 37252) || (castId == 39688) )
{
Expand All @@ -63,8 +67,6 @@ public override void OnActionEffectEvent(ActionEffectSet set)
if (set.Action == null || (set.Source == null)) return;
if (set.Source.DataId == 0) return;

PluginLog.Log($"ActionEffectEvent {set.Action.Name} {set.Action.RowId} {set.Source.DataId}");

if ((set.Action.RowId == 37256) && (set.Source.DataId == 16945))
{
HideElement();
Expand Down

0 comments on commit 492298e

Please sign in to comment.