Core/Items: Fixed problem where item dependent auras are not properly updated
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user