Could someone tell whether the below code (which is stock) is correct?
PHP Code:
if( casterEI > targetRS )
scalar = (1.0 + ((casterEI - targetRS) / 500.0));
else
scalar = (1.0 + ((casterEI - targetRS) / 200.0));
It seems for me that, this way, when someone has higher Evaluating Inteligente than his spell target's Resisting Spells, it deals less damage when it should be dealing more. I think it should be like this:
PHP Code:
if( casterEI > targetRS )
scalar = (1.0 + ((casterEI - targetRS) / 200.0));
else
scalar = (1.0 + ((casterEI - targetRS) / 500.0));
Since I am novice with RunUO code, I am not confident to change it on my own. Veterans??