Skip to content

Commit

Permalink
Fix refine
Browse files Browse the repository at this point in the history
  • Loading branch information
Yazawazi committed Apr 19, 2022
1 parent 56ca323 commit e177b11
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,14 @@ public void refineWeapon(GenshinPlayer player, long targetGuid, long feedGuid) {
return;
}

if (weapon.getItemType() != ItemType.ITEM_WEAPON || weapon.getItemId() != feed.getItemId()) {
return;
if (weapon.getItemData().getAwakenMaterial() == 0) {
if (weapon.getItemType() != ItemType.ITEM_WEAPON || weapon.getItemId() != feed.getItemId()) {
return;
}
} else {
if (weapon.getItemType() != ItemType.ITEM_WEAPON || weapon.getItemData().getAwakenMaterial() != feed.getItemId()) {
return;
}
}

if (weapon.getRefinement() >= 4 || weapon.getAffixes() == null || weapon.getAffixes().size() == 0) {
Expand Down

0 comments on commit e177b11

Please sign in to comment.