I don't know if this is the same for all genies but for the invisible genie with 115 energy, at watcher of the earth:
Invisible Genie
Starting Stats
STR: 3
DEX: 5
VIT: 15
MAG: 5
Energy: 115
Regen: 1.10/sec
After rolling:
Gear:
Vit and Mag +4 each = 16 MAG and 16 VIT
Points: 262
Luck Points: 113/150
STR: 3
DEX: 5
VIT: 15 + 16 (gear) = 31 + 92 = 123
MAG: 5 + 16 (gear) = 21 + 79 = 100
regen: 3.0/sec
123 VIT + 115 original energy should be 238 energy but genie only has 223 energy -> losing 15 energy points
92 + 79 = 171 available points ((262-80)/2)+80
with 0 left over points
is this a glitch?