unfailing order stuff

This commit is contained in:
Chris Forbes
2010-01-09 11:17:59 +13:00
parent f4effd7ebf
commit 8763b3035a
6 changed files with 11 additions and 24 deletions

View File

@@ -28,7 +28,8 @@ namespace OpenRa.Game.Traits
{
if (order.OrderString == "IronCurtain")
{
order.Power.OnFireNotification(self, self.Location);
var power = self.Owner.SupportPowers[order.TargetString].Impl;
power.OnFireNotification(self, self.Location);
Game.world.AddFrameEndTask(w => w.Add(new InvulnEffect(self)));
RemainingTicks = (int)(Rules.General.IronCurtain * 60 * 25);
}