9
3

death.lua 443 B

1234567891011121314
  1. -- crystalcavern note: not so sure about this one, its underworld at an area that seems to have terrain above it.. but it is a pit.. so this is here in case?
  2. function EnterRegion(Zone, Spawn, RegionType)
  3. -- RegionType 2 is 'lava' or 'death' regions, RegionType 1 is water
  4. local invul = IsInvulnerable(Spawn)
  5. if invul == true then
  6. return 0
  7. end
  8. if RegionType == 2 then
  9. KillSpawn(Spawn, null, 1)
  10. end
  11. end