Used pChat plugin to see what happens with inCombat veriable and saw inCombat = nil as I expected.
Okay, tried to set it to 0:
Lua Code:
function testplugin:Initialize()
self.inCombat = IsUnitInCombat("player")
EVENT_MANAGER:RegisterForEvent(self.name, EVENT_PLAYER_COMBAT_STATE, self.OnPlayerCombatState)
inCombat=false
end
And inCombat is 0 after that (I check it in
testplugin.OnAddOnLoaded), but sign still exists after reloadui.