public override bool MingmingMeetsConstraint(MingmingBattleLogic source)
        {
            bool meetsStatusConstraint = StatusConstraints.All(sc => source.HasStatus(sc.Status) == sc.HasStatus);

            if (!meetsStatusConstraint)
            {
                var    statusConstraint = StatusConstraints.FirstOrDefault(sc => source.HasStatus(sc.Status) != sc.HasStatus);
                string canHave          = statusConstraint.HasStatus ? "MUST" : "CANNOT";
                UserMessage.Instance.SendMessageToUser($"{source.Name} {canHave} have the status: {statusConstraint.Status.name}");
            }

            return(meetsStatusConstraint);
        }
Example #2
0
        public override bool MingmingMeetsConstraint(MingmingBattleLogic source)
        {
            bool MeetsStatusConstraint = source.HasStatus(StatusConstraint.Status) == StatusConstraint.HasStatus;

            if (!MeetsStatusConstraint)
            {
                string canHave = StatusConstraint.HasStatus ? "MUST" : "CANNOT";
                UserMessage.Instance.SendMessageToUser($"{source.Name} {canHave} have the status: {StatusConstraint.Status.name}");
            }

            return(MeetsStatusConstraint);
        }