diff options
-rw-r--r-- | features/slayers/index.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/features/slayers/index.js b/features/slayers/index.js index af63a6d..df49346 100644 --- a/features/slayers/index.js +++ b/features/slayers/index.js @@ -84,7 +84,15 @@ class Slayers extends Feature { this.lastSlayerFinishes.shift(); } - this.slayerExp[this.lastSlayerType] = this.lastSlayerExp + (this.slayerExp[this.lastSlayerType] || 0); + let multiplier = 1 + if (this.FeatureManager.features["dataLoader"].class.mayorData.mayor.name === "Aatrox") { + if (this.FeatureManager.features["dataLoader"].class.currentMayorPerks.has("Slayer XP Buff")) { + multiplier += 0.25 + } + } + + this.slayerExp[this.lastSlayerType] = this.lastSlayerExp + (this.slayerExp[this.lastSlayerType] || 0) * multiplier; + if (this.expOnKill.getValue()) { cancel(e); ChatLib.chat("&r &r&a&lSLAYER QUEST COMPLETE!&a&r"); |