diff --git a/common/src/states/triple_strike.rs b/common/src/states/triple_strike.rs index 43bbcfb0ba..cbf5c7c817 100644 --- a/common/src/states/triple_strike.rs +++ b/common/src/states/triple_strike.rs @@ -51,7 +51,7 @@ impl CharacterBehavior for Data { .unwrap_or(Duration::default()); // If player stops holding input, don't go to the next stage - let mut should_transition = data.inputs.primary.is_pressed() && self.should_transition; + let should_transition = data.inputs.primary.is_pressed() && self.should_transition; if !self.initialized { update.vel.0 = Vec3::zero(); @@ -63,14 +63,9 @@ impl CharacterBehavior for Data { // Handle hit applied if let Some(attack) = data.attacking { - if attack.applied { - if attack.hit_count > 0 { - // Take energy on successful hit - update.energy.change_by(100, EnergySource::HitEnemy); - } else { - // Prevent transition on failure - should_transition = false; - } + if attack.applied && attack.hit_count > 0 { + // Take energy on successful hit + update.energy.change_by(100, EnergySource::HitEnemy); // Always remove component data.updater.remove::(data.entity); }