From 37b085f8c8fed98c27e73dfb7c460d2f865cf5c4 Mon Sep 17 00:00:00 2001 From: ChocoTaco Date: Tue, 5 Oct 2021 02:14:41 -0400 Subject: [PATCH] Formatting --- Classic/scripts/autoexec/AntiTurret.cs | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/Classic/scripts/autoexec/AntiTurret.cs b/Classic/scripts/autoexec/AntiTurret.cs index fd83d9d..e077a33 100644 --- a/Classic/scripts/autoexec/AntiTurret.cs +++ b/Classic/scripts/autoexec/AntiTurret.cs @@ -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); - } } }