Fix iron curtain activate anim
This commit is contained in:
@@ -28,6 +28,13 @@ namespace OpenRa.Traits
|
|||||||
{
|
{
|
||||||
if (order.OrderString == "IronCurtain")
|
if (order.OrderString == "IronCurtain")
|
||||||
{
|
{
|
||||||
|
var curtain = self.World.Actors.Where(a => a.Owner == self.Owner
|
||||||
|
&& a.traits.Contains<IronCurtain>()).FirstOrDefault();
|
||||||
|
if (curtain != null)
|
||||||
|
curtain.traits.Get<RenderBuilding>().PlayCustomAnim(curtain, "active");
|
||||||
|
|
||||||
|
Sound.Play("ironcur9.aud");
|
||||||
|
|
||||||
order.TargetActor.traits.Get<IronCurtainable>().Activate(order.TargetActor,
|
order.TargetActor.traits.Get<IronCurtainable>().Activate(order.TargetActor,
|
||||||
(int)((Info as IronCurtainPowerInfo).Duration * 25 * 60));
|
(int)((Info as IronCurtainPowerInfo).Duration * 25 * 60));
|
||||||
Game.controller.CancelInputMode();
|
Game.controller.CancelInputMode();
|
||||||
|
|||||||
Reference in New Issue
Block a user