comparison OOCDo.lua @ 11:088390bd4ab3

typo in luadoc
author rowaasr13
date Fri, 27 Jan 2017 03:48:54 +0300
parents 3b9bc71a1dd6
children
comparison
equal deleted inserted replaced
10:d5c910dfcc96 11:088390bd4ab3
52 end 52 end
53 end 53 end
54 until true end 54 until true end
55 end 55 end
56 56
57 --- Tries to set button to castwe first available spell from list. 57 --- Tries to set button to cast first available spell from list.
58 -- Sets button's .type to "spell" and .spell to first spell that player knowns (GetSpellInfo(name) returns something). 58 -- Sets button's .type to "spell" and .spell to first spell that player knowns (GetSpellInfo(name) returns something).
59 -- Returns if any spell was found or not, so you can use this in conditional to do something else if there were no suitable spells. 59 -- Returns if any spell was found or not, so you can use this in conditional to do something else if there were no suitable spells.
60 -- If none of spells was found, button will still lose previously assigned command. 60 -- If none of spells was found, button will still lose previously assigned command.
61 -- @param ... list of spell IDs to try 61 -- @param ... list of spell IDs to try
62 -- @return true if any spell was found and nil otherwise 62 -- @return true if any spell was found and nil otherwise