Index: objects/oState.iss =================================================================== --- objects/oState.iss (revision 616) +++ objects/oState.iss (working copy) @@ -507,6 +507,18 @@ ;---------- member LOOTState() { + if ${WoWScript[LootFrame:IsShown()]} + { + if ${LootWindow.Count} && (${Inventory.GetBagsInfo[RETRIEVE_FREESLOTS,normal]} > 0) + { + return OB_LOOTALL + } + else + { + return OB_CLOSE_LOOT + } + } + if ${POI.InUseRange} && ${POI.CanUse} { return OB_USE_LOOT @@ -532,18 +544,6 @@ { return OB_LOOT_ORE } - - if ${WoWScript[LootFrame:IsShown()]} - { - if ${LootWindow.Count} && (${Inventory.GetBagsInfo[RETRIEVE_FREESLOTS,normal]} > 0) - { - return OB_LOOTALL - } - else - { - return OB_CLOSE_LOOT - } - } } method LOOTPulse() @@ -591,7 +591,7 @@ Navigator:ClearPath move -stop Toon:Standup - WoWScript LootAll() + LootAll This:SetWaitRunningTime[3] Grind.LootCount:Inc break @@ -1211,4 +1211,4 @@ } return FALSE } -} \ No newline at end of file +}