public static bool IsFailCondition(Unit self, Unit target, EUnitCondition condition) { bool flag = SceneBattle.Instance.Battle.CheckEnemySide(self, target); if (AIUtility.IsFailCondition(condition)) return flag; return !flag; }