Parcourir la source

增加SeekingMissile法术新索敌策略:最胖的那一个

大爷 il y a 1 an
Parent
commit
755467cd9b

+ 2 - 0
Common/CommonAI/Zone/Data.cs

@@ -2454,6 +2454,8 @@ namespace CommonAI.Zone
             NearestIgnoreInChain,
             [DescAttribute("搜索最远单位(忽略链中)")]
             FarthestIgnoreInChain,
+            [DescAttribute("搜索最棒的BOSS")]
+            TheOne,
         }
         //--------------------------------------------
 

+ 3 - 0
Common/CommonAI/Zone/Instance/InstanceZone.cs

@@ -2607,6 +2607,9 @@ namespace CommonAI.Zone.Instance
                     case SpellTemplate.SeekingExpect.FarthestIgnoreInChain:
                         list.Sort(new ObjectSorterFarthest<InstanceUnit>(X, Y));
                         break;
+                    case SpellTemplate.SeekingExpect.TheOne:
+                        list.Sort((a, b) => { return (int)(b.Weight - a.Weight); });
+                        break;
                 }
                 if (list.Count > 0)
                 {