Mercurial > wow > mylilpony
diff libMyLilPony/libMyLilPony_mountFunctions.lua @ 7:d96c15f7477b
Updated documentation for API.
author | syzler |
---|---|
date | Tue, 05 Apr 2011 02:05:57 +0000 |
parents | 21d6611a1307 |
children | b1e344c17ab5 |
line wrap: on
line diff
--- a/libMyLilPony/libMyLilPony_mountFunctions.lua Tue Apr 05 01:11:23 2011 +0000 +++ b/libMyLilPony/libMyLilPony_mountFunctions.lua Tue Apr 05 02:05:57 2011 +0000 @@ -165,7 +165,7 @@ -- Does nothing if the specified unit's mount is already summoned. -- @param unit The unit frame name (e.g. "target", "player", "focus") of the unit whose mount is desired. -- @return A Boolean value indicating whether or not a mount was successfully summoned. --- @usage MyLilPony.CallMountByMatch("target") +-- @usage MyLilPony.CallMountByMatch("target"); function MyLilPony.CallMountByMatch(unit) local result = false; local unitBuffs = MyLilPony.GetUnitBuffs(unit); @@ -189,7 +189,7 @@ -- local _, name, _, _, summoned = GetCompanionInfo("MOUNT", i); -- return not summoned and string.match(name, pattern); -- end --- return MyLilPony.CallMountByFilter(filter); +-- MyLilPony.CallMountByFilter(filter); function MyLilPony.CallMountByFilter(filter) local countMounts = GetNumCompanions("MOUNT"); if countMounts > 0 then