mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fix attack delay
Former-commit-id: 28f7a492adcc37cec15e3e3c0d46b6015b27ee04
This commit is contained in:
parent
5c48330460
commit
c96b5c45c3
@ -482,7 +482,14 @@ impl Server {
|
||||
},
|
||||
ClientMsg::Attack => match client.client_state {
|
||||
ClientState::Character => {
|
||||
state.write_component(entity, comp::Attacking::start());
|
||||
if state
|
||||
.ecs()
|
||||
.read_storage::<comp::Attacking>()
|
||||
.get(entity)
|
||||
.is_none()
|
||||
{
|
||||
state.write_component(entity, comp::Attacking::start());
|
||||
}
|
||||
}
|
||||
_ => client.error_state(RequestStateError::Impossible),
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user