Skip to content

Commit

Permalink
fix: removing amulet charges when use bow
Browse files Browse the repository at this point in the history
  • Loading branch information
carlospess0a committed Jan 8, 2024
1 parent ed99d95 commit 531c80c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/creatures/players/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5350,6 +5350,10 @@ int32_t Player::getPerfectShotDamage(uint8_t range, bool useCharges) const {
continue;
}

if (!itemType.abilities->perfectShotRange) {
continue;
}

if (itemType.abilities->perfectShotRange == range) {
result += itemType.abilities->perfectShotDamage;
uint16_t charges = item->getCharges();
Expand Down

0 comments on commit 531c80c

Please sign in to comment.