Changed framework to allow invulnerability on entering an area.
Cleaned up knockback/invulnerability code.