Upgrade granting warheads register as sources.

This commit is contained in:
Matija Hustić
2015-07-05 22:06:25 +01:00
parent 58472bf090
commit 6f54fe7e5d

View File

@@ -49,13 +49,16 @@ namespace OpenRA.Mods.Common.Warheads
foreach (var u in Upgrades)
{
if (!um.AcceptsUpgrade(a, u))
continue;
if (Duration > 0)
um.GrantTimedUpgrade(a, u, Duration);
{
if (um.AcknowledgesUpgrade(a, u))
um.GrantTimedUpgrade(a, u, Duration, firedBy);
}
else
um.GrantUpgrade(a, u, this);
{
if (um.AcceptsUpgrade(a, u))
um.GrantUpgrade(a, u, this);
}
}
}
}