Skip to content

Commit

Permalink
fix: remove slot check
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas authored Mar 11, 2024
1 parent 71f463e commit 09a0762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/items/functions/item/item_parse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ void ItemParse::createAndRegisterScript(ItemType &itemType, pugi::xml_node attri
auto stringKey = asLowerCaseString(subKeyAttribute.as_string());
if (stringKey == "slot") {
auto slotName = asLowerCaseString(subValueAttribute.as_string());
if (moveevent && slotName != "two-handed" && (moveevent->getEventType() == MOVE_EVENT_EQUIP || moveevent->getEventType() == MOVE_EVENT_DEEQUIP)) {
if (moveevent && (moveevent->getEventType() == MOVE_EVENT_EQUIP || moveevent->getEventType() == MOVE_EVENT_DEEQUIP)) {
if (slotName == "head") {
moveevent->setSlot(SLOTP_HEAD);
} else if (slotName == "necklace") {
Expand Down

0 comments on commit 09a0762

Please sign in to comment.