refactored skill code, made magic/phys dmg cache