Changes to ExternalCondition.TryRevokeCondition

This commit is contained in:
atlimit8
2017-07-18 13:34:05 -05:00
committed by Paul Chote
parent 72236b66f6
commit c7d3c3ec73
4 changed files with 19 additions and 6 deletions

View File

@@ -50,7 +50,8 @@ namespace OpenRA.Mods.Common.Scripting
public void RevokeCondition(int token)
{
foreach (var external in externalConditions)
external.TryRevokeCondition(Self, this, token);
if (external.TryRevokeCondition(Self, this, token))
break;
}
[Desc("Check whether this actor accepts a specific external condition.")]