WeakAuras

WeakAuras

206M Downloads

Condition for aura being active in a [smart group - combine matches per unit - show: all] trigger

BartStam opened this issue ยท 4 comments

commented

Is your feature request related to a problem? Please describe.
Tried to make an aura that shows which Mechagon: Junkyard buffs are active/missing on people. The idea was to show an icon for each buff per unit, and desaturate the inactive ones. However, there currently does not seem to be a condition that allows for this.

Describe the solution you'd like
"If aura is active" condition (not trigger active, since in this case the trigger is always active)

Describe alternatives you've considered
Some dirty "remaining duration <= 0" condition Reloe suggested, but it didn't even work!

Additional context
image

That's the idea, with the inactive buffs being desaturated/transparent.

commented

My proposed solution is to use condition total duration = 0 then desaturate

!WA:2!fw12UTXXz4SyRBCxh7krBRARM0kOGO4MayyldBhe0GcUuK2QLHKzjLKDAt1o7Ud5orl3D9mZskQEuSUPk9myrp30wWR7v8rqpb)GOipa(I(aONG(pZsQy7ErVz5C()W3bASDbX6Bq7vOBHGcbhD9reUFvAChz4Jx6jEj8ak3M4VxapjnDb7i2bhq4bR0kjjsYs57xVDBbvAWhmBWesSFycVrclw6vQCTwLDg3olkQeJ7hrDDePeF6z4eFjljwChhHKWLwETzXmrOLn(J0AOKZ60HYflVgF2WpACa1lRD7wdsP87xUAJkBv1wItCizCY6dfP0OOndewprK5r7rJLnXtZ2FYULk2S1UnBv0PLDg(4EPrKbuUtmPlvy5OpQ39PKiz4PxTbNIx1PzJYvRoklEwkynXpjkRBCtvfy6XjbSmXJFPHzcAvwxMm0HeX6edNLJ1K6cgJXh0H2rvOw2rjKGkEssegGLC6MHTplBmT9xcUMLJFeriuJSfSdOQbt9M11lLeLW)MMMMnmVX1V9qEs)8mGtIzDjsAOJWhFvtVCWkCC(VLd6qtxS5JYiC6kvqeyLDczs6yUoHu9XJdgGDbMFhEsw6SB1eJ(zSfjCPDCsmD9mwWKRTv)gpSCPQ3U0TgjOrT1ylCwmtKefkACcoNYJjrBJygUWEpXhlzjjwwbX5eUNtXn2CRMtjzsKAupvd9whNhXCEZxWdVsBwhRXYe)E5pZvmC)GvzbJ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9a74cpyEDCbDPK70aVVl8TDHVJ2mb8C1(hOhH7YREZ7Q8lUcSRYWa(a47(uMeGV2tac0UaWCXp0(OlbDmGqSBYq1l8HA1kShebDHyi5qi1aEeEdoiWJlHS8MwpOpSVbmaoa(EUW3h(bWp8QWpYa(XWHFkmCorf(jWppe(PWhb)SldhzaFC(LFSb8lcHFLj8lnHF9IWVje(TAkZB()qzE9tPmfTWwe8pDHFNHcgGrHWdDFwu9wkN7)Sj8hoe(JUihRuVTFRK4ThG2SWFkeXz43NhFe7G)Ic3G)k83Gpzokb)Dn(a)dGIuRz0sfFdPDpfT85w58p)kf69VFW)9p

@BartStam said on discord result is not inconsistent
maybe it's better with <= 0 instead of 0, i'm not sure if my solution is correct

commented

Tried Buds' suggestion, this is the result for "total duration <= 0":
image

This is the result for "total duration == 0":
image

Note that in the above image, the only buff present is Retribution Aura on Naempala. None of the other players have any of the other buffs.

The result is also quite inconsistent, it doesn't always give the same result. Meaning sometimes instead of the last image, it would desaturate everything except Retribution Aura (as it should), but it does it for every single person (even though only I have it active).

Edit:
Here is "total duration <= 0" again, with a different result:
image

In this case, none of the auras (not even Retribution Aura) is active on any of the players.

commented

This custom check seems to do the trick.

function(states)
    return not states[1].active
end
commented

"stacks >= 0" works.

Strangely enough the state already contains a active property, which is not checkable via Conditions.

Since there'll likely be some rework with the new DF api, I won't add the active property to the condition list atm. I'll keep this in mind when we decide what to do with BT2 in DF.