Fixed zombies being able to hold onto props during team change
This commit is contained in:
parent
182f4e2526
commit
6ecc246e57
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ function ENT:Think()
|
||||||
|
|
||||||
local object = self:GetObject()
|
local object = self:GetObject()
|
||||||
local owner = self:GetOwner()
|
local owner = self:GetOwner()
|
||||||
if not object:IsValid() or object:IsNailed() or not owner:IsValid() or not owner:Alive() then
|
if not object:IsValid() or object:IsNailed() or not owner:IsValid() or not owner:Alive() or not owner:Team() == TEAM_HUMAN then
|
||||||
self:Remove()
|
self:Remove()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue