Make SPM not fire from an actor with disabled instance of a SW.
This commit is contained in:
committed by
abcdefg30
parent
7474c38943
commit
3ed8e4b4e8
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user