Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevents the loop of player from pushing another player #34

Merged
merged 2 commits into from
Sep 19, 2021

Conversation

dudantas
Copy link
Contributor

@dudantas dudantas commented Sep 2, 2021

Description

Added enable/disable push when attacking to config.lua (default value is false).
Prevents the character from pulling another one, continuing in the loop until it manages to pull it or get out of range.

How the bug works: When player 1 tries to pull player 2, from a distance, player 1's character only stopped when he could pull
player 2 or when out of range (assuming that player 1 kept trying to go in the opposite direction of player 2). With this changes, if player 1 makes one movement, the push stops automatically.

Type of change

  • [1] Bug fix (non-breaking change which fixes an issue)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I checked the PR checks reports
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works

@dudantas dudantas linked an issue Sep 2, 2021 that may be closed by this pull request
1 task
Copy link
Collaborator

@beats-dh beats-dh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working perfectly

…op until it manages to pull it or get out of range

When player 1 tried to pull player 2, from a distance, player 1's character only stopped when he could pull
player 2 or when out of range (assuming that player 1
  kept trying to go in the opposite direction of player 2). That way, if player 1 makes a move, the push stops automatically.
@sonarcloud
Copy link

sonarcloud bot commented Sep 19, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@dudantas dudantas merged commit 6159dad into master Sep 19, 2021
@dudantas dudantas deleted the fix-push-player-bug branch September 19, 2021 03:39
luan pushed a commit that referenced this pull request Jul 11, 2023
luan pushed a commit that referenced this pull request Jul 11, 2023
Added enable/disable push when attacking to config.lua (default value is false).
Prevents the character from pulling another one, continuing in the loop until it manages to pull it or get out of range.

How the bug works: When player 1 tries to pull player 2, from a distance, player 1's character only stopped when he could pull
player 2 or when out of range (assuming that player 1 kept trying to go in the opposite direction of player 2). With this changes, if player 1 makes one movement, the push stops automatically.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: push player.
2 participants