Enabled multiple timed upgrades from single source.
This makes the UpgradeManager support requests to grant a timed upgrade multiple times from a single source. GrantUpgradeWarhead modified to take advantage of this.
This commit is contained in:
@@ -48,7 +48,7 @@ namespace OpenRA.Mods.Common.Warheads
|
||||
if (Duration > 0)
|
||||
{
|
||||
if (um.AcknowledgesUpgrade(a, u))
|
||||
um.GrantTimedUpgrade(a, u, Duration, firedBy);
|
||||
um.GrantTimedUpgrade(a, u, Duration, firedBy, Upgrades.Count(upg => upg == u));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user