GetExpansionFoe

comment

Returns an enemy unit near the expansion location, whether this unit is a creep or belong to an enemy to the AI player.

note

Important: in order to use this native, CreateCaptains must be called first or the game will crash. It is already called in the function CampaignAI found in common.ai.

patch

1.00

Source
common.ai (raise an issue to discuss on Github or submit a PR)
return type
unit
Source code
native GetExpansionFoe      takes nothing                               returns unit