Corrected parallax target check

This commit is contained in:
Anuken 2021-01-11 10:14:23 -05:00
parent c716c16746
commit 6417073a82

View File

@ -97,7 +97,7 @@ public class TractorBeamTurret extends BaseTurret{
any = false;
//look at target
if(target != null && target.within(this, range) && target.team() != team && target.type.flying && efficiency() > 0.02f){
if(target != null && target.within(this, range) && target.team() != team && target.checkTarget(targetAir, targetGround) && efficiency() > 0.02f){
if(!headless){
control.sound.loop(shootSound, this, shootSoundVolume);
}