Fix combat action prediction (#19152)

* Fix action predictions

* Add ActionsAddedTest
This commit is contained in:
Leon Friedrich
2023-08-15 17:06:45 +12:00
committed by GitHub
parent cfccb5959a
commit cabc834e84
5 changed files with 84 additions and 5 deletions

View File

@@ -249,6 +249,19 @@ public abstract class ActionType : IEquatable<ActionType>, IComparable, ICloneab
return CompareTo(other) == 0;
}
public static bool operator ==(ActionType? left, ActionType? right)
{
if (left is null)
return right is null;
return left.Equals(right);
}
public static bool operator !=(ActionType? left, ActionType? right)
{
return !(left == right);
}
public override int GetHashCode()
{
unchecked