Skip to content

Commit 7db5a7c

Browse files
Fixed #86. Added edge case for moving partial to partial from guardian to guardian through vault with partial.
1 parent 668b48c commit 7db5a7c

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

app/scripts/services/dimItemService.factory.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@
4545
}
4646

4747
item.amount = item.moveAmount;
48-
item.moveAmount = 0;
4948
}
5049

50+
item.moveAmount = 0;
51+
5152
matchingItem = _.filter(target.items, function(i) {
5253
return ((i.amount < item.maxStackSize) && (i.hash === item.hash));
5354
});
@@ -501,6 +502,11 @@
501502
promise = promise.then(moveToStore.bind(null, item, data.target, equip));
502503
}
503504

505+
promise = promise
506+
.then(function() {
507+
item.moveAmount = 0;
508+
});
509+
504510
return promise;
505511
})
506512
.catch(function(e) {

0 commit comments

Comments
 (0)