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

Implement IsInitialized for auctionhousebot #562

Closed
wants to merge 1 commit into from

Conversation

mostlikely4r
Copy link
Contributor

🍰 Pullrequest

IsInitialized() implementation for AuctionhouseBot to allow external modules (such as playerbot) to detect if GetItemData() can be used safely.

Proof

When AuctionHouseBot.Chance.Sell and AuctionHouseBot.Chance.Buy are both set to 0 in the config GetItemData() will return uninitialized values. This causes issues in for example playerbot code.

How2Test

Disable Auctionhousebot in the config with playerbots enabled.

Todo / Checklist

  • Use IsInitialized in botcode.

@mostlikely4r mostlikely4r deleted the IsInitialized branch July 5, 2024 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant