Skip to content

Commit 64fc347

Browse files
authored
Merge pull request #78 from CommunalHelper/misc-additions
move resetActivation to update
2 parents c922fab + 5403a62 commit 64fc347

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Code/TriggerTrigger.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,12 @@ public override void Update() {
187187
UpdateTriggers(player);
188188
}
189189
}
190+
191+
if (resetActivation)
192+
{
193+
externalActivation = false;
194+
resetActivation = false;
195+
}
190196
}
191197

192198
public void UpdateConditions(Player player) {
@@ -337,11 +343,6 @@ public bool GetActivateCondition(Player player) {
337343
}
338344
if (externalActivation) {
339345
result = true;
340-
if (resetActivation)
341-
{
342-
externalActivation = false;
343-
resetActivation = false;
344-
}
345346
}
346347
if (invertCondition) {
347348
result = !result;

0 commit comments

Comments
 (0)