Skip to content

Commit

Permalink
Fix wildy rev weapon boost (#6168)
Browse files Browse the repository at this point in the history
  • Loading branch information
DayV-git authored Nov 3, 2024
1 parent d9a95c6 commit 682cb33
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/mahoji/lib/abstracted_commands/minionKill/speedBoosts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,21 +203,19 @@ const dragonHunterBoost: Boost = {
}
};
const revWildyGearBoost: Boost = {
description: 'A boost for using a wilderness weapon for killing revenants.',
description: 'A boost for using a wilderness weapon for killing in wildy.',
run: ({ monster, isInWilderness, combatMethods, primaryStyle: style, gearBank }) => {
const matchedRevenantMonster = revenantMonsters.find(m => m.id === monster.id);
if (!matchedRevenantMonster) return null;
if (!isInWilderness || !monster.revsWeaponBoost) return null;
if (combatMethods.includes('barrage') || combatMethods.includes('burst')) return null;

const specialWeapon = revSpecialWeapons[style];
const upgradedWeapon = revUpgradedWeapons[style];

let revBoost = 0;
if (gearBank.gear.wildy.hasEquipped(specialWeapon.name)) {
revBoost = 12.5;
} else if (gearBank.gear.wildy.hasEquipped(upgradedWeapon.name)) {
if (gearBank.gear.wildy.hasEquipped(upgradedWeapon.name)) {
revBoost = 17.5;
} else if (gearBank.gear.wildy.hasEquipped(specialWeapon.name)) {
revBoost = 12.5;
}

if (revBoost > 0) {
Expand Down

0 comments on commit 682cb33

Please sign in to comment.