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

[2.0] UNIQUE horses can be created when one already exists. #56

Closed
Nevakanezah opened this issue Jan 7, 2023 · 1 comment · Fixed by #58
Closed

[2.0] UNIQUE horses can be created when one already exists. #56

Nevakanezah opened this issue Jan 7, 2023 · 1 comment · Fixed by #58
Labels
bug Something isn't working
Milestone

Comments

@Nevakanezah
Copy link
Owner

The "secret horses" available in HE are custom-modified horses meant to be a complete rarity on servers, which is why their gender is UNIQUE - they cannot breed, and only one horse with the UNIQUE gender should exist at any time.

The expected behaviour is:

  1. A horse breeding event that fulfills secret horse conditions occurs.
  2. The code checks whether a horse with the UNIQUE gender already exists in the database.
  3. If none exist, summon the secret horse.
  4. If one does exist, the secret horse code does not run, and a normal horse is bred instead.
@Nevakanezah
Copy link
Owner Author

Confirmed fix
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant