Make Mobile upgradable

This commit is contained in:
atlimit8
2015-09-25 13:37:50 -05:00
parent 019951795d
commit 0fc04b7a4a
3 changed files with 21 additions and 15 deletions

View File

@@ -155,7 +155,7 @@ namespace OpenRA.Mods.Common.Activities
if (IsCanceled)
return NextActivity;
if (moveDisablers.Any(d => d.MoveDisabled(self)))
if (mobile.IsTraitDisabled || moveDisablers.Any(d => d.MoveDisabled(self)))
return this;
if (destination == mobile.ToCell)