Formatting

This commit is contained in:
ChocoTaco 2021-10-05 02:14:41 -04:00
parent f0893c48db
commit 37b085f8c8

View file

@ -17,22 +17,14 @@ package AntiTurret
function TurretData::selectTarget(%this, %turret) function TurretData::selectTarget(%this, %turret)
{ {
if( !$Host::TournamentMode && $TotalTeamPlayerCount < $Host::EnableTurretPlayerCount ) if(!$Host::TournamentMode && $TotalTeamPlayerCount < $Host::EnableTurretPlayerCount)
{
%turret.clearTarget(); %turret.clearTarget();
}
else else
{ {
//All turret types can fire if($Host::EnableMortarTurret) //All turret types can fire
if( $Host::EnableMortarTurret )
{
parent::selectTarget(%this, %turret); parent::selectTarget(%this, %turret);
} else if(%turret.initialBarrel !$= "MortarBarrelLarge") //Only non-MortarTurret types can fire
//Only non-MortarTurret types can fire
else if( %turret.initialBarrel !$= "MortarBarrelLarge" )
{
parent::selectTarget(%this, %turret); parent::selectTarget(%this, %turret);
}
} }
} }