I believe that even after the changes from the last commit, there is still a bug left in the code. My suggestion is to change the level used to determine a constant for the resist chance calculation to the level of the target- instead of using the caster level.
Core/Mechanic: Fixed wrong caster level at resist chance calculation.
Commit message is wrong/misleading, revising...
Mh, doesn't make sense to create a new commit just for changing the commit message. Apart from that, I think, it's clear where the problem is. It should read "Core/Mechanic: Fixed wrong target level at resist chance calculation."