Upload from upload_mods.ps1
This commit is contained in:
36
Scripts/Requirements/IsBlocked.cs
Normal file
36
Scripts/Requirements/IsBlocked.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
public class IsBlocked : TargetedCompareRequirementBase
|
||||
{
|
||||
|
||||
public override bool IsValid(MinEventParams _params)
|
||||
{
|
||||
//Log.Out("IsBlocked-IsValid START");
|
||||
|
||||
if (_params == null)
|
||||
{
|
||||
//Log.Out("IsBlocked-IsValid NO PARAMETERS");
|
||||
}
|
||||
|
||||
if (_params.Self == null)
|
||||
{
|
||||
//Log.Out("IsBlocked-IsValid NO TARGET");
|
||||
}
|
||||
|
||||
EntityAlive me = _params.Self;
|
||||
|
||||
bool flag = false;
|
||||
|
||||
if (me.moveHelper.IsBlocked)
|
||||
{
|
||||
flag = true;
|
||||
}
|
||||
|
||||
//Log.Out("IsBlocked-IsValid flag: " + flag);
|
||||
|
||||
if (!this.invert)
|
||||
{
|
||||
return flag;
|
||||
}
|
||||
return !flag;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user