Fix the idle animation of the hostBuilding in Rearm.cs
using the damage state of the reloaded actor
This commit is contained in:
@@ -59,7 +59,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
|
||||
var wsb = hostBuilding.Trait<WithSpriteBody>();
|
||||
if (wsb.DefaultAnimation.HasSequence("active"))
|
||||
wsb.PlayCustomAnimation(hostBuilding, "active", () => wsb.CancelCustomAnimation(self));
|
||||
wsb.PlayCustomAnimation(hostBuilding, "active", () => wsb.CancelCustomAnimation(hostBuilding));
|
||||
|
||||
var sound = pool.Info.RearmSound;
|
||||
if (sound != null)
|
||||
|
||||
Reference in New Issue
Block a user