Skip to content

Commit

Permalink
Fix cade attack speed exploit (#4204)
Browse files Browse the repository at this point in the history
# About the pull request

This PR fixes an exploit where dragging could be used to bypass an
attack cooldown.

# Explain why it's good for the game

Fixes #4184 

# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

https://youtu.be/nIfXqQ6IBw0

</details>


# Changelog
:cl: Drathek
fix: Fixed a cade attack exploit
/:cl:
  • Loading branch information
Drulikar authored Aug 22, 2023
1 parent 161421d commit 05fe942
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/modules/mob/living/carbon/xenomorph/Xenomorph.dm
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,9 @@


/mob/living/carbon/xenomorph/start_pulling(atom/movable/AM, lunge, no_msg)
if(next_move >= world.time)
return FALSE

if(SEND_SIGNAL(AM, COMSIG_MOVABLE_XENO_START_PULLING, src) & COMPONENT_ALLOW_PULL)
return do_pull(AM, lunge, no_msg)

Expand Down

0 comments on commit 05fe942

Please sign in to comment.