Getting started with implementing an explicit AI, based on the Essentials one.
All checks were successful
Build / Build (push) Successful in 1m2s
All checks were successful
Build / Build (push) Successful in 1m2s
This commit is contained in:
@@ -196,4 +196,12 @@ public class MoveDataImpl : IMoveData
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool HasFlag(StringKey key) => _flags.Contains(key);
|
||||
}
|
||||
|
||||
public static class MoveTargetHelpers
|
||||
{
|
||||
public static bool TargetsFoe(this MoveTarget target) =>
|
||||
target is MoveTarget.AdjacentOpponent or MoveTarget.RandomOpponent or MoveTarget.AllAdjacentOpponent
|
||||
or MoveTarget.AllOpponent or MoveTarget.Adjacent or MoveTarget.AllAdjacent or MoveTarget.Any
|
||||
or MoveTarget.All;
|
||||
}
|
||||
Reference in New Issue
Block a user