There's a few issues: Wiz crit thing, which you mentioned. Luck thing, which you mentioned. Also, your formula for spell damage is off. I'm not quite sure where you came up with the numbers for this, but it works as follows: Code: If (Time < 2.5) { Multiplier = .25 } else if (Time >= 2.5 && Time < 7) { Multiplier = .167 * (Time - 1) } else if (Time >= 7) { Multiplier = Time / 7 } The 296/297 thing we talked about before. It's definitely a bug that was added "recently" at some point. The rest of it I think looks fine.
Now I know why we can't have nice things. The server's are still calculating last year's raid damage.
Since that was the only part of the code that had an issue I was trying to guess what maybe a more exact version could be. Assuming the formula above was kind of like a rounded/simplified version. The one checked in last gave basically the same answer.
That formula is the actual formula. The .167 is used in a lot of places in EQ since it corresponds to a roll of a 6-sided die. EQ being based on DnD math for a lot of things.