Yes its an invisible frame that handles event management.
It can easily be replaced with a visual and functional frame.
UnitLevel("player") will only work after the Player has Logged into the game so the PLAYER_LOGIN or PLAYER_ENTERING_WORLD event will give you access to the players level, so adding 1 to a nil value could cause an error or set it to 1 or keep it at nil ( I've never tried +1 on a nil value ). The UNIT_LEVEL event will allow you to track the changes when they happen. Just use arg1 of the events parameters rather than UnitLevel("player") in the UNIT_LEVEL event code.
|