Ive had this function as part of my addon for nearly 9mo now with no issues but recently I began reworking the function to not just mount my "saved player @NAME" but anyoone in group that is riding a dual mount and has free pasenger slot. This is when I noticed this function is now returning true & true for GetTargetMountedStateInfo() even when noone is on a mount at all:
Code:
for iD = 1, GetGroupSize() do
local playerID = GetGroupUnitTagByIndex(iD)
local playerCharName = GetUnitName(playerID)
local playerDisplayName = GetUnitDisplayName(playerID)
local _, isRidingGroupMount, hasFreePassengerSlot = GetTargetMountedStateInfo(playerDisplayName)
I tested this extensively 9mo ago when I 1st implemented it but now I cant seem to get it to return false ever which is needed. Any suggestions?