UnitIsMounted

Check if a WowGameObject is mounted.

UnitIsMounted(--[[(1)]]objectReference) : boolean
  1. See Object Reference for more information on possible values.

Example

Check if an object is mounted.

local ismounted = UnitIsMounted('target')
if ismounted then
print("Dismount that alliance scum")
end