Force disable the DCU

This commit is contained in:
Lucas Nicodemus 2015-07-05 14:27:46 -06:00
parent ceac62019c
commit dd58ab8d15

View file

@ -3035,6 +3035,12 @@ namespace TShockAPI
return false; return false;
} }
if (type == BuffID.DrillMount)
{
TShock.Utils.ForceKick(TShock.Players[id], "The Drill Containment Unit is disabled.");
return true;
}
args.Player.SendData(PacketTypes.PlayerAddBuff, "", id); args.Player.SendData(PacketTypes.PlayerAddBuff, "", id);
return true; return true;
} }
@ -3328,8 +3334,15 @@ namespace TShockAPI
{ {
args.TPlayer.buffTime[i] = 0; args.TPlayer.buffTime[i] = 0;
} }
if (buff == BuffID.DrillMount)
{
TShock.Utils.ForceKick(TShock.Players[id], "The Drill Containment Unit is disabled.");
return true;
}
} }
NetMessage.SendData((int) PacketTypes.PlayerBuff, -1, args.Player.Index, "", args.Player.Index); NetMessage.SendData((int) PacketTypes.PlayerBuff, -1, args.Player.Index, "", args.Player.Index);
return true; return true;
} }