TTT-2 / ttt2-role_spy

This is the "Spy" role for TTT2
0 stars 11 forks source link

Change instances of HasTeam with an argument to use GetTeam #30

Closed aurowora closed 3 years ago

aurowora commented 3 years ago

In v.0.9.0b of TTT, the following breaking change was made:

Adjusted Player:HasRole() and Player:HasTeam() to support simplified role and team checks (no parameter are supported anymore, use Player:GetRole() or Player:GetTeam() instead)

This pull request changes instances of HasTeam(x) to GetTeam() == x

In my testing, I found this to be the cause for #29