mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'knightresspaladin/fix-melee-leap' into 'master'
Added check to prevent melee leaps from stalling in liquids See merge request veloren/veloren!2584
This commit is contained in:
commit
b725cf57bb
@ -101,7 +101,7 @@ impl CharacterBehavior for Data {
|
||||
timer: tick_attack_or_default(data, self.timer, None),
|
||||
..*self
|
||||
});
|
||||
} else if data.physics.on_ground.is_some() {
|
||||
} else if data.physics.on_ground.is_some() | data.physics.in_liquid().is_some() {
|
||||
// Transitions to swing portion of state upon hitting ground
|
||||
update.character = CharacterState::LeapMelee(Data {
|
||||
timer: Duration::default(),
|
||||
|
Loading…
Reference in New Issue
Block a user