Skip to content

Commit

Permalink
Applies the magic 1 combat mastery to always max hit NPCs
Browse files Browse the repository at this point in the history
  • Loading branch information
Cooper Morris committed Nov 25, 2024
1 parent 51478e3 commit d691319
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/PlayerVsNPCCalc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1340,6 +1340,9 @@ export default class PlayerVsNPCCalc extends BaseCalc {
if ((this.player.style.type === 'magic' && ALWAYS_MAX_HIT_MONSTERS.magic.includes(this.monster.id))
|| (this.isUsingMeleeStyle() && ALWAYS_MAX_HIT_MONSTERS.melee.includes(this.monster.id))
|| (this.player.style.type === 'ranged' && ALWAYS_MAX_HIT_MONSTERS.ranged.includes(this.monster.id))) {
if (this.player.style.type === 'magic' && this.hasLeaguesMastery('magic', MagicMastery.MAGIC_1)) {
return new AttackDistribution([HitDistribution.single(1.0, [new Hitsplat(Math.trunc(max * 3 / 2))])]);
}
return new AttackDistribution([HitDistribution.single(1.0, [new Hitsplat(max)])]);
}

Expand Down

0 comments on commit d691319

Please sign in to comment.