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

◆ InOpposingTeam()

bool Terraria.Player.InOpposingTeam ( Player otherPlayer)
inline

Definition at line 4958 of file Player.cs.

4959 {
4960 if (hostile && otherPlayer.hostile)
4961 {
4962 if (otherPlayer.team != 0)
4963 {
4964 return otherPlayer.team != team;
4965 }
4966 return true;
4967 }
4968 return false;
4969 }

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