Properly account for disabled Armaments in various places
These places didn't care if an Armament was disabled, which could lead to unexpected behavior.
This commit is contained in:
@@ -151,6 +151,9 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
foreach (var a in Armaments)
|
||||
{
|
||||
if (a.IsTraitDisabled)
|
||||
continue;
|
||||
|
||||
var port = SelectFirePort(self, targetYaw);
|
||||
if (port == null)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user