Check if player is being ignored when they try to spawn a boss.
This commit is contained in:
parent
33e66bd145
commit
84225c4861
1 changed files with 5 additions and 0 deletions
|
|
@ -3153,6 +3153,11 @@ namespace TShockAPI
|
|||
|
||||
private static bool HandleSpawnBoss(GetDataHandlerArgs args)
|
||||
{
|
||||
if ((DateTime.UtcNow - args.Player.LastThreat).TotalMilliseconds < 5000)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
var spawnboss = false;
|
||||
var invasion = false;
|
||||
var plr = args.Data.ReadInt32();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue