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

events.lua: Fix bug with unexpected Classes on TBC. #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mwcarlis
Copy link

@mwcarlis mwcarlis commented Nov 6, 2021

On TBC GetNumClasses() returns 11, but the expansion only has 9
classes. The code goes on to call GetClassInfo() which returns
nil for classIndex when it does not exist in the game.
i.e 6 - Death Knight, 10 - Monk, etc. It then tries
to index RAID_CLASS_COLORS with nil which of course causes an error.

On TBC GetNumClasses() returns 11, but the expansion only has 9
classes. The code goes on to call GetClassInfo() which returns
nil for classIndex when it does not exist in the game.
i.e 6 - Death Knight, 10 - Monk, etc. It then tries
to index RAID_CLASS_COLORS with nil which of course causes an error.
Certain fields in TBC from Enum.UIWidgetVisualizationType and
C_UIWidgetManager are nil. Check if the fields are both non,
nil before adding them into the _widgetHandlers table.

Missing Fields on TBC.
C_UIWidgetManager       Enum.UIWidgetVisualizationType
TextureAndText          GetTextureAndTextVisualizationInfo
SpellDisplay            GetSpellDisplayVisualizationInfo
DoubleStateIconRow      GetDoubleStateIconRowVisualizationInfo
TextureAndTextRow       GetTextureAndTextRowVisualizationInfo
ZoneControl             GetZoneControlVisualizationInfo
CaptureZone             GetCaptureZoneVisualizationInfo
TextureWithAnimation    GetTextureWithAnimationVisualizationInfo
DiscreteProgressSteps   GetDiscreteProgressStepsVisualizationInfo
ScenarioHeaderTimer     GetScenarioHeaderTimerWidgetVisualizationInfo
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