Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ InOpposingTeam()

bool Terraria.Player.InOpposingTeam ( Player otherPlayer)
inline

Definition at line 3810 of file Player.cs.

3811 {
3812 if (hostile && otherPlayer.hostile)
3813 {
3814 if (otherPlayer.team != 0)
3815 {
3816 return otherPlayer.team != team;
3817 }
3818 return true;
3819 }
3820 return false;
3821 }

References Terraria.Player.hostile, and Terraria.Player.team.