Skip to content

Commit

Permalink
WIP: fletching at sepulchre
Browse files Browse the repository at this point in the history
  • Loading branch information
nwjgit committed Jul 12, 2024
1 parent 64d7f12 commit f62f4e5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/mahoji/commands/minigames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ import {
nightmareZoneImbueCommand,
nightmareZoneImbueables
} from './../lib/abstracted_commands/nightmareZoneCommand';
import type { Fletchable } from '../../lib/skilling/types';

export const minigamesCommand: OSBMahojiCommand = {
name: 'minigames',
Expand Down Expand Up @@ -1083,7 +1084,7 @@ export const minigamesCommand: OSBMahojiCommand = {
start?: { difficulty: string; quantity?: number };
buy?: { reward: string; difficulty: string; quantity?: number };
};
sepulchre?: { start?: { fletch?: string } };
sepulchre?: { start?: { fletch?: Fletchable["name"] } };
gauntlet?: { start?: { corrupted?: boolean } };
mage_training_arena?: {
start?: {};
Expand Down Expand Up @@ -1253,7 +1254,10 @@ export const minigamesCommand: OSBMahojiCommand = {
*
*/
if (options.sepulchre?.start) {
return sepulchreCommand(user, channelID, options.sepulchre.start.fletch);
if (options.sepulchre.start.fletch) {
const fletch = options.sepulchre.start.fletch;
return sepulchreCommand(user, channelID, fletch);
}
}
/**
*
Expand Down

0 comments on commit f62f4e5

Please sign in to comment.