Files
7d2dXG/Mods/zzz_REBIRTH__Utils/Scripts/Requirements/NPCs/IsLeaderRebirth.cs
Nathaniel Cosford 062dfab2cd Patched
2025-05-30 01:04:40 +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;
}
}