Fix WithSpriteBody PlayCustomAnimationRepeating
Lacked damage stage awareness.
This commit is contained in:
@@ -81,8 +81,8 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
public void PlayCustomAnimationRepeating(Actor self, string name)
|
public void PlayCustomAnimationRepeating(Actor self, string name)
|
||||||
{
|
{
|
||||||
DefaultAnimation.PlayThen(name,
|
var sequence = NormalizeSequence(self, name);
|
||||||
() => PlayCustomAnimationRepeating(self, name));
|
DefaultAnimation.PlayThen(sequence, () => PlayCustomAnimationRepeating(self, sequence));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void PlayCustomAnimationBackwards(Actor self, string name, Action after = null)
|
public void PlayCustomAnimationBackwards(Actor self, string name, Action after = null)
|
||||||
|
|||||||
Reference in New Issue
Block a user