From 16ef8fab064007e535077d26209816a65cdef1f3 Mon Sep 17 00:00:00 2001 From: cpojer Date: Tue, 5 Nov 2024 14:47:04 +0900 Subject: [PATCH] AI should not try to activate skills that require crystals. GitOrigin-RevId: b564e2a9772f98f5c5099b21d20aecd9572110fd --- dionysus/DionysusAlpha.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dionysus/DionysusAlpha.tsx b/dionysus/DionysusAlpha.tsx index 4adebba..dad4fe0 100644 --- a/dionysus/DionysusAlpha.tsx +++ b/dionysus/DionysusAlpha.tsx @@ -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]);