List<ActorRef<Card>> result = new List<ActorRef<Card>>();
                foreach (var minionCard in battleField.GetDeployedMinionCards())
                {
                    Card minion = GetActorObject(minionCard);
                    if (triggerEffect.triggerCondition.attributeType == AttributeType.Cost)
                    {
                        if (triggerEffect.triggerCondition.comparisonOperator == ComparisonOperator.GreaterThanOrEqual)
                        {
                            if (minion.GetCost().Value.Value.intValue >= triggerEffect.triggerCondition.conditionValue)
                            {
                                result.Add(minionCard);
                            }
                        }
                        else if (triggerEffect.triggerCondition.comparisonOperator == ComparisonOperator.GreaterThan)
                        {
                            if (minion.GetCost().Value.Value.intValue > triggerEffect.triggerCondition.conditionValue)
                            {
                                result.Add(minionCard);
                            }
                        }
                        else if (triggerEffect.triggerCondition.comparisonOperator == ComparisonOperator.LessThan)
                        {
                            if (minion.GetCost().Value.Value.intValue < triggerEffect.triggerCondition.conditionValue)
                            {
                                result.Add(minionCard);
                            }
                        }                        
                        else if (triggerEffect.triggerCondition.comparisonOperator == ComparisonOperator.LessThanOrEqual)
                        {
                            if (minion.GetCost().Value.Value.intValue <= triggerEffect.triggerCondition.conditionValue)
                            {
                                result.Add(minionCard);
                            }
                        }                        
                        else if (triggerEffect.triggerCondition.comparisonOperator == ComparisonOperator.EqualTo)
                        {
                            if (minion.GetCost().Value.Value.intValue == triggerEffect.triggerCondition.conditionValue)
                            {
                                result.Add(minionCard);
                            }
                        }
                    }
                    else if (triggerEffect.triggerCondition.attributeType == AttributeType.Health)
                    {
                        if (triggerEffect.triggerCondition.comparisonOperator == ComparisonOperator.GreaterThanOrEqual)
                        {
                            if (minion.GetHealth().Value.intValue >= triggerEffect.triggerCondition.conditionValue)
                            {
                                result.Add(minionCard);
                            }
                        }
                        else if (triggerEffect.triggerCondition.comparisonOperator == ComparisonOperator.GreaterThan)
                        {
                            if (minion.GetHealth().Value.intValue > triggerEffect.triggerCondition.conditionValue)
                            {
                                result.Add(minionCard);
                            }
                        }
                        else if (triggerEffect.triggerCondition.comparisonOperator == ComparisonOperator.LessThan)
                        {
                            if (minion.GetHealth().Value.intValue < triggerEffect.triggerCondition.conditionValue)
                            {
                                result.Add(minionCard);
                            }
                        }                        
                        else if (triggerEffect.triggerCondition.comparisonOperator == ComparisonOperator.LessThanOrEqual)
                        {
                            if (minion.GetHealth().Value.intValue <= triggerEffect.triggerCondition.conditionValue)
                            {
                                result.Add(minionCard);
                            }
                        }                        
                        else if (triggerEffect.triggerCondition.comparisonOperator == ComparisonOperator.EqualTo)
                        {
                            if (minion.GetHealth().Value.intValue == triggerEffect.triggerCondition.conditionValue)
                            {
                                result.Add(minionCard);
                            }
                        }                            
                        
                    }
                    else if (triggerEffect.triggerCondition.attributeType == AttributeType.Attack)
                    {
                        if (triggerEffect.triggerCondition.comparisonOperator == ComparisonOperator.GreaterThanOrEqual)
                        {
                            if (minion.GetAttack().Value.intValue >= triggerEffect.triggerCondition.conditionValue)
                            {
                                result.Add(minionCard);
                            }
                        }
                        else if (triggerEffect.triggerCondition.comparisonOperator == ComparisonOperator.GreaterThan)
                        {
                            if (minion.GetAttack().Value.intValue > triggerEffect.triggerCondition.conditionValue)
                            {
                                result.Add(minionCard);
                            }
                        }
                        else if (triggerEffect.triggerCondition.comparisonOperator == ComparisonOperator.LessThan)
                        {
                            if (minion.GetAttack().Value.intValue < triggerEffect.triggerCondition.conditionValue)
                            {
                                result.Add(minionCard);
                            }
                        }                        
                        else if (triggerEffect.triggerCondition.comparisonOperator == ComparisonOperator.LessThanOrEqual)
                        {
                            if (minion.GetAttack().Value.intValue <= triggerEffect.triggerCondition.conditionValue)
                            {
                                result.Add(minionCard);
                            }
                        }                        
                        else if (triggerEffect.triggerCondition.comparisonOperator == ComparisonOperator.EqualTo)
                        {
                            if (minion.GetAttack().Value.intValue == triggerEffect.triggerCondition.conditionValue)
                            {
                                result.Add(minionCard);
                            }
                        }                        
                    }
                }
                return result; 帮忙优化这段代码