another squareddistanceto $ check
refine PE timer handling
allow apparition cast in cv, graveyard etc
redraw fix
Merge pull request #637 from skittles1/fixminorbugs

Fix a SquaredDistanceTo check for tree LB, refine PE timer handling on logon/off, allow Apparition to be cast by unguilded against monsters in CV and Tos GY.
Curse weapon now a debuff.
Update spell, cursed attribute
calculation and code changes