Fix triplestrike bug

This commit is contained in:
timokoesters 2020-03-26 23:28:58 +01:00
parent 7692f1d354
commit 7a9c7628db

View File

@ -55,6 +55,11 @@ impl CharacterAbility {
/// applicable.
pub fn requirements_paid(&self, data: &JoinData, update: &mut StateUpdate) -> bool {
match self {
CharacterAbility::TripleStrike { .. } => {
data.physics.on_ground
&& data.body.is_humanoid()
&& data.inputs.look_dir.xy().magnitude_squared() > 0.01
},
CharacterAbility::Roll => {
data.physics.on_ground
&& data.body.is_humanoid()