Re-applying Locust

Status
Not open for further replies.
I'm using Bribe's Unit Event and Unit Indexer. The units unhide but they don't get locusted again. Everything else in the code works as it should.

  • Umbral Mines Unload
    • Events
      • Game - CargoEvent becomes Equal to 2.00
    • Conditions
      • (Unit-type of UDexUnits[UDex]) Equal to Taskmaster
      • (Unit-type of CargoTransportUnit[UDex]) Equal to Entangled Gold Mine
    • Actions
      • Set ID = (Custom value of CargoTransportUnit[UDex])
      • Set ID2 = (Custom value of UDexUnits[UDex])
      • Set UmbralMines_countTaskmasters[ID] = (UmbralMines_countTaskmasters[ID] - 1)
      • Set Minion_count[ID] = (Minion_count[ID] - Minion_count[ID2])
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (UDexUnits[UDex] is in Boss_group) Equal to True
        • Then - Actions
          • Unit Group - Pick every unit in Minion_group[ID2] and do (Actions)
            • Loop - Actions
              • Unit - Unhide (Picked unit)
              • Custom script: call UnitAddAbilityBJ( 'Aloc', GetEnumUnit() )
          • Set Minion_count[ID] = (Minion_count[ID] - Minion_count[ID2])
        • Else - Actions
      • -------- -------- -------- -------- -------- -------- -------- -------- -------- --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • UmbralMines_countTaskmasters[ID] Equal to 0
        • Then - Actions
          • Unit Group - Remove CargoTransportUnit[UDex] from UmbralMines_group
        • Else - Actions
 
Status
Not open for further replies.
Top