Fix attack delay

Former-commit-id: 28f7a492adcc37cec15e3e3c0d46b6015b27ee04
This commit is contained in:
timokoesters 2019-05-28 21:10:54 +02:00
parent b28a68a84d
commit 75fca3b446

@ -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),
},