# HG changeset patch # User Wuzzy # Date 1537447892 -3600 # Node ID ed20d7c7c667a709f9c891fd80e2275d61ac67f2 # Parent 94d8cb743e9a00357385de32b02d621dd820ae1c LuaAPI: Add hint for onHogAttack to use onSkipTurn to detect a skip turn diff -r 94d8cb743e9a -r ed20d7c7c667 LuaAPI.wiki --- a/LuaAPI.wiki Sat Sep 15 18:45:39 2018 +0100 +++ b/LuaAPI.wiki Thu Sep 20 13:51:32 2018 +0100 @@ -312,7 +312,9 @@ This function is called when you release the down key. === onHogAttack(ammoType) === -This function is called when you press the attack key. Beginning with 0.9.21, the parameter `ammoType` is provided. It contains the ammo type of the weapon used for the attack. +This function is called when you press the attack key. Beginning with 0.9.21, the parameter `ammoType` is provided. It contains the ammo type of the weapon used for the attack. + +Note: If you want to detect when a turn was skipped, use `onSkipTurn()`. There is no guarantee that `onHogAttack(amSkip)` is called in such an event. === onLeftUp() === This function is called when you release the left key.