From d691319d69b8c8a54bd5aca59806fab5dadaac1f Mon Sep 17 00:00:00 2001 From: Cooper Morris Date: Sun, 24 Nov 2024 22:21:07 -0800 Subject: [PATCH] Applies the magic 1 combat mastery to always max hit NPCs --- src/lib/PlayerVsNPCCalc.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/PlayerVsNPCCalc.ts b/src/lib/PlayerVsNPCCalc.ts index acc5e632..5799b636 100644 --- a/src/lib/PlayerVsNPCCalc.ts +++ b/src/lib/PlayerVsNPCCalc.ts @@ -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)])]); }