They store the information from the getInfoType... in a variable that can then be used later. That way you only do the call once rather than every combat. It is a very small saving in time.
Dang there is a : on the end of the middle one and there should not be.
I took out the : but i now get this:
Traceback (most recent call last):
File "BugConfig", line 110, in unknown_endtag
File "BugConfig", line 334, in endChild
File "BugConfig", line 337, in end
File "BugConfig", line 318, in process
File "BugConfig", line 565, in handle
File "BugUtil", line 643, in getFunction
File "BugUtil", line 630, in lookupFunction
File "BugUtil", line 622, in lookupModule
File "<string>", line 35, in load_module
File "<string>", line 13, in _get_code
File "Heroes", line 124
elif
^
SyntaxError: invalid syntax