From f892eb629efc710b66007e29ba7c07334c5e9861 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Tue, 23 Nov 2010 19:12:33 +1300 Subject: [PATCH] fix exploitability of nuke and ion cannon --- OpenRA.Mods.Cnc/IonCannonPower.cs | 2 ++ OpenRA.Mods.RA/SupportPowers/NukePower.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Cnc/IonCannonPower.cs b/OpenRA.Mods.Cnc/IonCannonPower.cs index a0c487c40a..0ec8b9a3a1 100644 --- a/OpenRA.Mods.Cnc/IonCannonPower.cs +++ b/OpenRA.Mods.Cnc/IonCannonPower.cs @@ -26,6 +26,8 @@ namespace OpenRA.Mods.Cnc public void ResolveOrder(Actor self, Order order) { + if (!IsReady) return; + if (order.OrderString == "IonCannon") { Owner.World.AddFrameEndTask(w => diff --git a/OpenRA.Mods.RA/SupportPowers/NukePower.cs b/OpenRA.Mods.RA/SupportPowers/NukePower.cs index 2263afa70a..53b0c10c07 100755 --- a/OpenRA.Mods.RA/SupportPowers/NukePower.cs +++ b/OpenRA.Mods.RA/SupportPowers/NukePower.cs @@ -33,7 +33,7 @@ namespace OpenRA.Mods.RA public void ResolveOrder(Actor self, Order order) { - if (!IsAvailable) return; + if (!IsReady) return; if (order.OrderString == "NuclearMissile") {