Add config option "RespawnBossSeconds"

Fixes #813
This commit is contained in:
MarioE 2014-07-01 14:43:56 -04:00
parent 0701f5cf37
commit e2d826a157
4 changed files with 20 additions and 7 deletions

View file

@ -782,7 +782,7 @@ namespace TShockAPI
player.PaintThreshold = 0;
}
if (player.Dead && (DateTime.Now - player.LastDeath).Seconds >= Config.RespawnSeconds && player.Difficulty != 2)
if (player.RespawnTimer > 0 && --player.RespawnTimer == 0 && player.Difficulty != 2)
{
player.Spawn();
}