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)
{
if( !$Host::TournamentMode && $TotalTeamPlayerCount < $Host::EnableTurretPlayerCount )
{
if(!$Host::TournamentMode && $TotalTeamPlayerCount < $Host::EnableTurretPlayerCount)
%turret.clearTarget();
}
else
{
//All turret types can fire
if( $Host::EnableMortarTurret )
{
if($Host::EnableMortarTurret) //All turret types can fire
parent::selectTarget(%this, %turret);
}
//Only non-MortarTurret types can fire
else if( %turret.initialBarrel !$= "MortarBarrelLarge" )
{
else if(%turret.initialBarrel !$= "MortarBarrelLarge") //Only non-MortarTurret types can fire
parent::selectTarget(%this, %turret);
}
}
}