Make SPM not fire from an actor with disabled instance of a SW.

This commit is contained in:
Mustafa Alperen Seki
2018-02-04 18:38:30 +03:00
committed by abcdefg30
parent 7474c38943
commit 3ed8e4b4e8

View File

@@ -233,7 +233,7 @@ namespace OpenRA.Mods.Common.Traits
if (!Ready) if (!Ready)
return; return;
var power = Instances.Where(i => !i.IsTraitPaused) var power = Instances.Where(i => !i.IsTraitPaused && !i.IsTraitDisabled)
.MinByOrDefault(a => .MinByOrDefault(a =>
{ {
if (a.Self.OccupiesSpace == null) if (a.Self.OccupiesSpace == null)