--- deliantra/server/server/spell_attack.C 2008/12/28 08:08:25 1.75 +++ deliantra/server/server/spell_attack.C 2008/12/28 08:09:49 1.76 @@ -833,15 +833,11 @@ sint16 x, y, d; /* We can't use absdir here, because it never returns - * 0. If this is a rune, we want to hit the person on top + * 0. If this is a rune, we want to hit the person on top * of the trap (d==0). If it is not a rune, then we don't want * to hit that person. */ - d = dir + i; - while (d < 0) - d += 8; - while (d > 8) - d -= 8; + d = (dir + i) % 9; /* If it's not a rune, we don't want to blast the caster. * In that case, we have to see - if dir is specified,