From f47c509c04fac41a93a1a007ab34bb05d041bb25 Mon Sep 17 00:00:00 2001 From: horblegorble Date: Sun, 23 Jun 2024 02:42:23 +1000 Subject: [PATCH] swapped RandomInit to combat_state.initialized --- server/agent/src/attack.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/agent/src/attack.rs b/server/agent/src/attack.rs index 8c99938211..603236ce81 100644 --- a/server/agent/src/attack.rs +++ b/server/agent/src/attack.rs @@ -4792,7 +4792,6 @@ impl<'a> AgentData<'a> { enum ActionStateConditions { FirstVines = 0, SecondVines, - RandomInit, } // timers @@ -4826,8 +4825,8 @@ impl<'a> AgentData<'a> { // --- timers --- // initialise randomised cooldowns - if !agent.combat_state.conditions[ActionStateConditions::RandomInit as usize] { - agent.combat_state.conditions[ActionStateConditions::RandomInit as usize] = true; + if !agent.combat_state.initialized { + agent.combat_state.initialized = true; agent.combat_state.counters[ActionStateCounters::CloseMixupCooldown as usize] = rng.gen_range(CLOSE_MIXUP_COOLDOWN_SPAN[0]..=CLOSE_MIXUP_COOLDOWN_SPAN[1]); agent.combat_state.counters[ActionStateCounters::MidMixupCooldown as usize] = @@ -6121,8 +6120,9 @@ impl<'a> AgentData<'a> { // --- attacks --- + // start out by summoning green totem if !agent.combat_state.initialized { - // If not initialized yet, start out by summoning green totem + controller.push_basic_input(InputKind::Ability(2)); if matches!(self.char_state, CharacterState::BasicSummon(s) if s.stage_section == StageSection::Recover) {