Files
zzz_REBIRTH__Utils/Scripts/Requirements/NPCs/IsLeaderRebirth.cs
2025-06-04 16:44:53 +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;
}
}