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

Fix SM Graveyard and SFK in vanilla #351

Closed
wants to merge 2 commits into from
Closed

Fix SM Graveyard and SFK in vanilla #351

wants to merge 2 commits into from

Conversation

Ineverknow
Copy link

@Ineverknow Ineverknow commented Mar 23, 2023

This should fix issue #331.

Bosses added to vanilla dungeons in WotLK are nil in vanilla, causing the assertion in ItemDB:GetItemTable to trigger because there's no loot table.

Changes made:

  1. Replaced assertion with an if statement, checks if there's a boss id and loot table.
  2. Added a type check to make sure items is actually a table, for bosses that don't exist this is nil.

As I'm new to both this addon, WoW addon programming and Lua, I'd love some feedback and tips if you have any.

@Ineverknow Ineverknow closed this Apr 4, 2023
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