so i just did a test.. if you cast mage armor then the game treat it as though he is wearing armor. this is wrong and not intended?
It is working as intended. You can only get base AC from one source. And mage
armor counts as wearing armor.
Armor, Mage Armor, Barkskin, Unarmored Defense = none of them stack. The game will choose the highest value to set as your AC.