fix ObjectCoord bug in TaskTrace
This commit is contained in:
@@ -530,10 +530,20 @@ namespace BrewMonster.Network
|
||||
return iIndex;
|
||||
}
|
||||
|
||||
public static int GetObjectCoord(string strTargetID, out List<OBJECT_COORD> TargetCoord)
|
||||
public static int GetObjectCoord(string strTargetID, out List<OBJECT_COORD> TargetCoord)
|
||||
{
|
||||
TargetCoord = m_CoordTab[strTargetID];
|
||||
return TargetCoord.Count;
|
||||
TargetCoord = new List<OBJECT_COORD>();
|
||||
if (string.IsNullOrWhiteSpace(strTargetID))
|
||||
return 0;
|
||||
|
||||
if (!m_bCoordLoaded)
|
||||
LoadObjectCoord();
|
||||
|
||||
if (!m_CoordTab.TryGetValue(strTargetID, out var list) || list == null)
|
||||
return 0;
|
||||
|
||||
TargetCoord = list;
|
||||
return list.Count;
|
||||
}
|
||||
|
||||
public static bool IsPetAutoSkill(int skill_id)
|
||||
|
||||
Reference in New Issue
Block a user