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 %powerType always shows the primary unitPowerType even if another powerType is selected #4784

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

Boneshockx
Copy link
Contributor

@Boneshockx Boneshockx commented Dec 31, 2023

Description

%powertype shows the wrong number when we select a different-from-primary power type in the trigger.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested

Be on any class with multiple power types (e.g. Warlock).
Select a power trigger for player, select Soul Shards.

Expected result:
%powertype = 7 (soulshards)

Actual result:
%powertype = 0
print(UnitPowerType("player")) = 0 (mana)

@InfusOnWoW InfusOnWoW merged commit 78b941f into WeakAuras:main Jan 3, 2024
1 check passed
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.

3 participants