DarkflameUniverse / DarkflameServer

The main repository for the Darkflame Universe Server Emulator project.
https://www.darkflameuniverse.org/
GNU Affero General Public License v3.0
654 stars 173 forks source link

fix: mission related preconditions #1634

Closed Wincent01 closed 2 months ago

Wincent01 commented 2 months ago

The current logic registered missions that had not been accepted as passing preconditions they should not. This PR seeks to use the GetMissionState function which takes care of this case.

EmosewaMC commented 2 months ago

The logic was incorrect before, however if there are any tests you can do to make sure this change has the expected results, those would be appreciated. Noticed this 2 years ago and didnt fix because it wasnt broken lol.