# HG changeset patch # User Wuzzy # Date 1524324502 -3600 # Node ID b4d511c8648a0335018424f0aadc286409b5f865 # Parent 81f8f7659f501f5ffb8864afe9656307f58db7cc LuaAPI: fix Retreat heading diff -r 81f8f7659f50 -r b4d511c8648a LuaAPI.wiki --- a/LuaAPI.wiki Sat Apr 21 16:27:59 2018 +0100 +++ b/LuaAPI.wiki Sat Apr 21 16:28:22 2018 +0100 @@ -1038,7 +1038,7 @@ Normally, a “Coward” taunt may be played and an announcer message may be shown (depending on the situation). Set the optional `noTaunts` parameter to `true` to force the engine to never play a taunt or show a message. `noTaunts` is `false` by default. -=== `Retreat(time [, respectGetAwayTimeFactor)` (0.9.25) === +==== `Retreat(time [, respectGetAwayTimeFactor)` (0.9.25) ==== Forces the current turn into the retreating phase, as if the hog made an attack. That is, the current hedgehog is unable to attack or select a weapon, only movement is possible until the retreat time is up. The retreat time must be set with `time` in milliseconds. By default, this time is automatically multiplied with get-away time percentage from the game scheme for seamless integration with schemes. If you want to ignore the game scheme for some reason and set the retreat time no matter what, set `respectGetAwayTimeFactor` to `false`.