Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gc committed Feb 19, 2024
1 parent 4cfb150 commit abab625
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/lib/minions/data/killableMonsters/custom/SunMoon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ export const Solis: CustomMonster = {
const hasMaxedIgne = tames.some(tame => tame.isMaxedIgneTame());
if (hasMaxedIgne) return null;
return 'You need to have a maxed Igne Tame (best gear, all fed items) to fight Solis.';
}
},
setupsUsed: ['melee']
};

// export const Celestara: CustomMonster = {
Expand Down
1 change: 1 addition & 0 deletions src/lib/minions/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export interface KillableMonster {
minimumWeaponShieldStats?: Partial<Record<GearSetupType, Required<GearRequirement>>>;
tameCantKill?: true;
customRequirement?: (user: MUser) => Promise<string | null>;
setupsUsed?: GearSetupType[];
}
/*
* Monsters will have an array of Consumables
Expand Down
3 changes: 2 additions & 1 deletion src/mahoji/lib/abstracted_commands/minionKill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,8 @@ export async function minionKillCommand(
for (const degItem of degradeablePvmBoostItems) {
const isUsing =
convertPvmStylesToGearSetup(attackStyles).includes(degItem.attackStyle) &&
user.gear[degItem.attackStyle].hasEquipped(degItem.item.id);
user.gear[degItem.attackStyle].hasEquipped(degItem.item.id) &&
(monster.setupsUsed ? monster.setupsUsed.includes(degItem.attackStyle) : true);
if (isUsing) {
// We assume they have enough charges, add the boost, and degrade at the end to avoid doing it twice.
degItemBeingUsed.push(degItem);
Expand Down

0 comments on commit abab625

Please sign in to comment.