LuaAPI.wiki
changeset 558 e9a42aa9e4c2
parent 557 7a25067aa32c
child 560 d0c74d14c7b6
--- 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):
 
 <code language="lua">    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</code>