move McvDeploy from rules into yaml. fix buttons on chronoSelect. removed extraneous PlayAnimation order.

This commit is contained in:
Bob
2010-01-24 13:46:05 +13:00
parent a43787d0cb
commit 67319eac11
6 changed files with 7 additions and 13 deletions

View File

@@ -41,8 +41,8 @@ namespace OpenRa.Traits
var chronosphere = self.World.Actors.Where(a => a.Owner == self.Owner
&& a.traits.Contains<Chronosphere>()).FirstOrDefault();
if (chronosphere != null)
Game.orderManager.IssueOrder(new Order("PlayAnimation", chronosphere, "active"));
if( chronosphere != null )
chronosphere.traits.Get<RenderBuilding>().PlayCustomAnim( chronosphere, "active" );
// Trigger screen desaturate effect
foreach (var a in self.World.Actors.Where(a => a.traits.Contains<ChronoshiftPaletteEffect>()))