Switch to setting event flag in stead of restoring XP on spawn (the latter was too buggy)