comparison libMyLilPony/libMyLilPony_mountFunctions.lua @ 19:2ae5f67e313a 1.1.0-b1

Added support for matching any unit's mount via macro options (e.g. /pony [@mouseover] match). The "target" command is now deprecated in favour of the slightly more general "match" (although "target" will continue to work).
author syzler
date Sat, 16 Apr 2011 15:23:40 +0000
parents 21764271e02f
children 22011265a16f
comparison
equal deleted inserted replaced
18:b7966675a105 19:2ae5f67e313a
182 182
183 --- Summons a mount by attempting to match the mount of the specified unit. 183 --- Summons a mount by attempting to match the mount of the specified unit.
184 -- The function checks the buffs of the specified unit against the mount spellbook for matches. 184 -- The function checks the buffs of the specified unit against the mount spellbook for matches.
185 -- As a result, the function will only likely work against player characters. 185 -- As a result, the function will only likely work against player characters.
186 -- Does nothing if the specified unit's mount is already summoned. 186 -- Does nothing if the specified unit's mount is already summoned.
187 -- @param unit The unit frame name (e.g. "target", "player", "focus") of the unit whose mount is desired. 187 -- @param unit The UnitId (e.g. "target", "player", "focus", "party1", etc.) of the unit whose mount is desired.
188 -- @return A Boolean value indicating whether or not a mount was successfully summoned. 188 -- @return A Boolean value indicating whether or not a mount was successfully summoned.
189 -- @usage MyLilPony.CallMountByMatch("target"); 189 -- @usage MyLilPony.CallMountByMatch("target");
190 function MyLilPony.CallMountByMatch(unit) 190 function MyLilPony.CallMountByMatch(unit)
191 local result = false; 191 local result = false;
192 local unitBuffs = MyLilPony.GetUnitBuffs(unit); 192 local unitBuffs = MyLilPony.GetUnitBuffs(unit);