Files
7d2dXG/XG-Rebirth/Mods/zzz_REBIRTH__Utils/Scripts/Requirements/NPCs/IsLeaderRebirth.cs
2025-05-30 00:19:27 +09:30

15 lines
418 B
C#

public class IsLeaderRebirth : TargetedCompareRequirementBase
{
public override bool IsValid(MinEventParams _params)
{
//Log.Out("IsLeaderRebirth-IsValid START");
if (!this.ParamsValid(_params))
{
//Log.Out("IsLeaderRebirth-IsValid 1");
return false;
}
return (int)_params.Self.Buffs.GetCustomVar("$Leader") == this.target.entityId;
}
}