parent
7e8f0ea8e4
commit
7d4a96cfee
2 changed files with 3 additions and 2 deletions
|
|
@ -5028,7 +5028,7 @@ namespace TShockAPI
|
|||
{
|
||||
if (Main.npc[i].active && ((npcId == 0 && !Main.npc[i].townNPC && Main.npc[i].netID != NPCID.TargetDummy) || Main.npc[i].netID == npcId))
|
||||
{
|
||||
TSPlayer.Server.StrikeNPC(i, 99999, 0, 0);
|
||||
TSPlayer.Server.StrikeNPC(i, (int)(Main.npc[i].life + (Main.npc[i].defense*0.5)), 0, 0);
|
||||
kills++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -811,7 +811,8 @@ namespace TShockAPI
|
|||
public virtual void SetTeam(int team)
|
||||
{
|
||||
Main.player[Index].team = team;
|
||||
SendData(PacketTypes.PlayerTeam, "", Index);
|
||||
NetMessage.SendData((int)PacketTypes.PlayerTeam, -1, -1, "", Index);
|
||||
NetMessage.SendData((int)PacketTypes.PlayerTeam, -1, Index, "", Index);
|
||||
}
|
||||
|
||||
private DateTime LastDisableNotification = DateTime.UtcNow;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue