death.lua 414 B

1234567891011121314
  1. -- kaelthrone note: this represents the region in outer kael, however they have it behind the door wall... so it exists sort of?
  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