Update Controllable.lua

Typo in `OptionDisperseOnAttack()`
This commit is contained in:
Applevangelist 2021-05-26 09:16:26 +02:00 committed by GitHub
parent 75849fbfb5
commit dab486ec99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1832,7 +1832,7 @@ end
do -- Patrol methods
--- (GROUND) Patrol iteratively using the waypoints the for the (parent) group.
--- (GROUND) Patrol iteratively using the waypoints of the (parent) group.
-- @param #CONTROLLABLE self
-- @return #CONTROLLABLE
function CONTROLLABLE:PatrolRoute()
@ -3817,7 +3817,7 @@ function CONTROLLABLE:OptionDisperseOnAttack(Seconds)
local Controller = self:_GetController()
if Controller then
if self:IsGround() then
self:SetOption(AI.Option.GROUND.id.DISPERSE_ON_ATTACK, seconds)
self:SetOption(AI.Option.Ground.id.DISPERSE_ON_ATTACK, seconds)
end
end
return self