private bool CheckResurrection()
{
for (var i = 0; i < 4; i++)
{
var item = Inventory[i];
if (item == null || !item.Resurrects) continue;
HP = Stats[0] + Stats[0];
MP = Stats[1] + Stats[1];
Inventory[i] = null;
Owner.BroadcastPacket(new TextPacket
{
BubbleTime = 0,
Stars = -1,
Name = "",
Text = string.Format("{0}'s {1} breaks and he disappears", Name, item.ObjectId)
}, null);
psr.Reconnect(new ReconnectPacket
{
Host = "",
Port = 2050,
GameId = World.NEXUS_ID,
Name = "Nexus",
Key = Empty<byte>.Array,
});
resurrecting = true;
return true;
}
return false;
}