Multiple "Check every XX seconds" triggers conflict #240


  • New
  • Patch
Open
Assigned to ckknight
  • _ForgeUser1261618 created this issue Mar 22, 2014

    performPeriodicCheck is passed the same name for every trigger. This means all triggers share the same elapsed time variable, thus the time elapsed is incremented once for every trigger for every periodic check, only one trigger can trigger per periodic check, and only the trigger(s) with the smallest time period will be triggered.

    --- a/Code/Triggers.lua
    +++ b/Code/Triggers.lua
    @@ -1649,7 +1649,7 @@ function Parrot_Triggers:OnTriggerCondition(name, arg, uid, check)
                                            end
                                    end
                            elseif name == "Check every XX seconds" then
    -                               good = performPeriodicCheck(name, param)
    +                               good = performPeriodicCheck(t.name, param)
                            else
                                    good = checkPrimaryCondition(param, arg, check)
                            end
    
  • _ForgeUser1261618 added the tags New Patch Mar 22, 2014

To post a comment, please login or register a new account.