WeakAuras

WeakAuras

200M Downloads

Item type equipped trigger: option for checking offhand slot

mrbuds opened this issue ยท 3 comments

commented

There is currently no way to test the type of your offhand with current Item type equipped trigger

image

commented

The api that we are using:
https://warcraft.wiki.gg/wiki/API_IsEquippedItemType. which we call with an item type and item sub type from: https://warcraft.wiki.gg/wiki/ItemType

doesn't support checking for the off-hand item type. What's the use case for this?

commented

A use case is check if both main hand & off hand have a dagger equipped so you can use "mutilate" on a rogue (this is for SoD)

commented

Right we can probably add a item location to it, the right api sequence seems to be:
GetInventoryItemID("player", slot) to get the item id, then
GetItemInfoInstant(itemId) to get the classId and subClassId then compare it via:
classId * 256 + subClassId == userInput

Doesn't sound to bad and does fit the trigger.