Fix timed external conditions being rejected instead of reset.

This commit is contained in:
Paul Chote
2017-01-25 20:45:11 +00:00
parent 248d9df3ab
commit 255214e77c
5 changed files with 11 additions and 7 deletions

View File

@@ -39,7 +39,7 @@ namespace OpenRA.Mods.Common.Warheads
var cm = a.TraitOrDefault<ConditionManager>();
// Condition token is ignored because we never revoke this condition.
if (cm != null && cm.AcceptsExternalCondition(a, Condition))
if (cm != null && cm.AcceptsExternalCondition(a, Condition, Duration > 0))
cm.GrantCondition(a, Condition, true, Duration);
}
}