Skip to content

Commit

Permalink
AI should not try to activate skills that require crystals.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: b564e2a9772f98f5c5099b21d20aecd9572110fd
  • Loading branch information
cpojer committed Nov 5, 2024
1 parent c593db6 commit 16ef8fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dionysus/DionysusAlpha.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,11 @@ export default class DionysusAlpha extends BaseAI {
continue;
}

const { charges } = getSkillConfig(skill);
const { charges, requiresCrystal } = getSkillConfig(skill);
if (
charges &&
charges * Charge <= charge &&
!requiresCrystal &&
shouldActivatePower(map, skill)
) {
potentialSkills.push([skill, charges]);
Expand Down

0 comments on commit 16ef8fa

Please sign in to comment.