Skip to content

Commit

Permalink
fixed cloak for specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruwetuin committed May 26, 2019
1 parent 664b0b0 commit 3c36896
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lups/particleclasses/unitjitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ function UnitJitter:CreateParticle()
end

function UnitJitter:Visible()
if self.allyTeam == LocalAllyTeamID then
if LocalAllyTeamID == -2 -- spec full view
or LocalAllyTeamID == self.allyTeam then
return Spring.IsUnitVisible(self.unit, 0, true) -- Don't draw for icons
end

Expand Down

0 comments on commit 3c36896

Please sign in to comment.