Core/Items: Fixed problem where item dependent auras are not properly updated

This commit is contained in:
hondacrx
2018-03-18 12:18:00 -04:00
parent 20ba7e63f6
commit 2ca6b95029
2 changed files with 11 additions and 7 deletions
+5
View File
@@ -298,6 +298,11 @@ namespace Game
}
pl.AutoUnequipOffhandIfNeed();
// if inventory item was moved, check if we can remove dependent auras, because they were not removed in Player::RemoveItem (update was set to false)
// do this after swaps are done, we pass nullptr because both weapons could be swapped and none of them should be ignored
if ((autoEquipItem.PackSlot == InventorySlots.Bag0 && autoEquipItem.Slot < InventorySlots.BagEnd) || (dstbag == InventorySlots.Bag0 && dstslot < InventorySlots.BagEnd))
pl.ApplyItemDependentAuras(null, false);
}
}