Make Mobile a PausableConditionalTrait

This commit is contained in:
tovl
2019-03-03 21:12:45 +01:00
committed by reaperrr
parent f63d0272a7
commit 2e5e7c22f4
20 changed files with 107 additions and 32 deletions

View File

@@ -64,6 +64,6 @@ namespace OpenRA.Mods.Common.Scripting
}
[Desc("Whether the actor can move (false if immobilized).")]
public bool IsMobile { get { return !mobile.IsTraitDisabled; } }
public bool IsMobile { get { return !mobile.IsTraitDisabled && !mobile.IsTraitPaused; } }
}
}