Skip to content

Commit

Permalink
Jelly Barrage
Browse files Browse the repository at this point in the history
  • Loading branch information
TastyPumPum committed Feb 7, 2024
1 parent 802855a commit ac4acfd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mahoji/lib/abstracted_commands/minionKill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,16 @@ export async function minionKillCommand(
return `You can't kill ${monster.name}, because you're not on a slayer task.`;
}

let isInWilderness = wilderness || (isOnTask && usersTask.assignedTask?.wilderness) || monster.canBePked;
const isInWilderness = wilderness || (isOnTask && usersTask.assignedTask?.wilderness) || monster.canBePked;

if (!monster.wildy && isInWilderness) {
return `You can't kill ${monster.name} in the wilderness.`;
}

if (monster.name === 'Jelly' && isInWilderness) {
monster.canBarrage = true;
}

const wildyGearStat = wildyGear.getStats()[key];
const revGearPercent = Math.max(0, calcWhatPercent(wildyGearStat, maxOffenceStats[key]));

Expand Down

0 comments on commit ac4acfd

Please sign in to comment.