mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
fix: blocking now ends in wielded
This makes blocking more viable because while blocking you can wait for the enemy to attack and then quickly exit the block and attack yourself.
This commit is contained in:
parent
e33af5e29a
commit
54d71848d2
@ -177,13 +177,15 @@ impl<'a> System<'a> for Sys {
|
||||
// Block
|
||||
if controller.secondary
|
||||
&& (character.movement == Stand || character.movement == Run)
|
||||
&& (character.action == Idle || character.action.is_wield())
|
||||
&& character.action.is_wield()
|
||||
{
|
||||
character.action = Block {
|
||||
time_left: Duration::from_secs(5),
|
||||
};
|
||||
} else if !controller.secondary && character.action.is_block() {
|
||||
character.action = Idle;
|
||||
character.action = Wield {
|
||||
time_left: Duration::default(),
|
||||
};
|
||||
}
|
||||
}
|
||||
Some(Item::Debug(item::Debug::Boost)) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user