if(actor == null)
{
return null;
}
GArray<AggroInfo> aggroList = actor.getAggroList();
AggroInfo mosthated1 = null;
for(AggroInfo ai : aggroList)
{
if(mosthated1 == null || mosthated1.attacker == null)
{
mosthated1 = ai;
}
else if(ai.attacker != null && actor.getDistance(ai.attacker) < actor.getDistance(mosthated1.attacker))
{
mosthated1 = ai;
}
}
AggroInfo mosthated2 = null;
for(AggroInfo ai : aggroList)
{
if(mosthated2 == null || mosthated2.attacker == null)
{
mosthated2 = ai;