i found bug in bestelement() function.
There is: creaturename.physical
and it returns nill cuz should be
creaturename.physicalmod
and please add to this func
elseif $voc == 4 then
elements.holy = creaturename.holymod
elseif $voc == 2 then
elements.physical = creaturename.physicalmod
end
cuz paladin and kinght got exori spells too.
http://paste.ofcode.org/hhv4xwJ4znPhdYpFTiY6eT