Function ExpansionAttack
- Line
- 2081
- Location
- common.ai
- Constant?
- no
- Type
- function
- Arguments
- nothing
- Returns
- nothing
| 2081 | function ExpansionAttack takes nothing returns nothing |
| 2082 | local unit creep = GetExpansionFoe() |
| 2083 | local integer x |
| 2084 | |
| 2085 | call FormGroup(3, true) |
| 2086 | if creep == null then |
| 2087 | set x = GetExpansionX() |
| 2088 | if x != -1 then |
| 2089 | call AttackMoveXYA(x,GetExpansionY()) |
| 2090 | endif
|
| 2091 | else
|
| 2092 | call AttackMoveKillA(creep) |
| 2093 | endif
|
| 2094 | endfunction
|