WeakAuras

WeakAuras

206M Downloads

Totem triggers could test for partial name match

xvwyh opened this issue ยท 0 comments

commented

Is your feature request related to a problem? Please describe.
Currently totem triggers check if summoned totem's name matched user input exactly. While this is probably just fine for the current WoW expansion, in Classic summoned totems have different names depending on their rank, e.g. "Searing Totem IV", so the user is forced to create multiple triggers for all possible totem ranks to match all their possible names.

Describe the solution you'd like
Change totem name check from triggerTotemName ~= totemName to not totemName:find(triggerTotemName), allowing partial name matching. This way the user can write "Searing Totem" in the trigger data, and it will match "Searing Totem", "Searing Totem II", "Searing Totem III", "Searing Totem IV" and so forth.

Describe alternatives you've considered
Manually creating copies of totem triggers to define all the possible totem name-ranks. Tedious, error-prone.