Set the object variable on the unit that allows switching if the player unit does not currently have it. Cache the result of "player" and pass it along the function chain. Fixes the inability to use the addon on team switched units.