Upload from upload_mods.ps1
This commit is contained in:
14
Scripts/Requirements/NPCs/IsLeaderRebirth.cs
Normal file
14
Scripts/Requirements/NPCs/IsLeaderRebirth.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user