Pullmobs:Search[-units,-alive,-hostile,-lineofsight,-range 0-15,-origin,${Unit[${AttackGUID}].Location}] echo "${Pullmobs.Count} pullmobs count" if ${Pullmobs.Count}>2 { do { echo "blacklisting some pullmobs" PullmobsIndex:Inc GUIDBlacklist:Set[${Pullmobs[${PullmobsIndex}]},AVOID] TargetGUID:Set[NOTARGET] AttackGUID:Set[NOTARGET] call FindTarget } while ${PullmobsIndex}<=${Pullmobs.Count} ;PullmobsIndex:Set[1] TargetGUID:Set[NOTARGET] AttackGUID:Set[NOTARGET] Return echo "${Return} return" call FindTarget }