mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'fix-delay' into 'master'
Fix attack delay See merge request veloren/veloren!194 Former-commit-id: 2846e7c2ffe0c35427a9bb7fa0c387fd6374e0c9
This commit is contained in:
commit
f8e18eef01
@ -483,7 +483,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