# HG changeset patch # User nemo # Date 1437053703 14400 # Node ID e9a42aa9e4c25cd3518c24e89162f8ae7140cd5e # Parent 7a25067aa32cb5cdfbaddec2294f2a616d817e85 GetHogLevel, not GetBotLevel diff -r 7a25067aa32c -r e9a42aa9e4c2 LuaAPI.wiki --- a/LuaAPI.wiki Wed Jul 08 13:38:44 2015 +0000 +++ b/LuaAPI.wiki Thu Jul 16 09:35:03 2015 -0400 @@ -664,7 +664,7 @@ Example (sets all bots poisoned): function onGearAdd(gear) - if (GetGearType(gear) == gtHedgehog) and (GetBotLevel(gear) > 0) then + if (GetGearType(gear) == gtHedgehog) and (GetHogLevel(gear) > 0) then SetEffect(gear, hePoisoned, 1) end end