Enchantrix.lua

  •  
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
removed the enchantrix.lua in the trunk folder, since it was misplaced there
removed the enchantrix.lua in the trunk folder, since it was misplaced there
(fixes #1274)Fixes the bug concerning combining stacks of an item while disenchanting.…
(fixes #1274)Fixes the bug concerning combining stacks of an item while disenchanting.

I traced the bug and found out that pickupContainerItemHook and pickupInventoryItemHook were still being called while the player was disenchanting. This caused the saved item (the item that enchantrix assumed was being disenchanted) to be changed to whatever was picked up. I added an if to both of those functions so that they are not called when the player is casting a spell, IE Disenchant. I tested this a few times, and it works for me, both when picking up and item and not. Feel free to test it more.