Skip to content

Commit

Permalink
removed duplicated check.
Browse files Browse the repository at this point in the history
  • Loading branch information
elsongabriel committed Jan 31, 2024
1 parent 57b3fb4 commit 0ee7d76
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/items/functions/item/item_parse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,6 @@ void ItemParse::parseAbsorbPercent(const std::string &tmpStrValue, pugi::xml_att
itemType.getAbilities().absorbPercent[combatTypeToIndex(COMBAT_FIREDAMAGE)] += pugi::cast<int16_t>(valueAttribute.value());
} else if (stringValue == "absorbpercentpoison" || stringValue == "absorbpercentearth") {
itemType.getAbilities().absorbPercent[combatTypeToIndex(COMBAT_EARTHDAMAGE)] += pugi::cast<int16_t>(valueAttribute.value());
} else if (stringValue == "absorbpercentearth") {
itemType.getAbilities().absorbPercent[combatTypeToIndex(COMBAT_EARTHDAMAGE)] += pugi::cast<int16_t>(valueAttribute.value());
} else if (stringValue == "absorbpercentice") {
itemType.getAbilities().absorbPercent[combatTypeToIndex(COMBAT_ICEDAMAGE)] += pugi::cast<int16_t>(valueAttribute.value());
} else if (stringValue == "absorbpercentholy") {
Expand Down

0 comments on commit 0ee7d76

Please sign in to comment.