WeakAuras

WeakAuras

206M Downloads

Condition HasTarget doesn't re-test on zone transfer

doktorstick opened this issue ยท 0 comments

commented

Describe the bug

I have an aura that starts off with Alpha 0% and a condition "if HasTarget == True then Alpha 100%". Whenever I zone with a target selected (for instance, talking to the harbor master to switch between Kul'Tiris and Zandalar), in the new zone the WeakAura remains visible even though no target is selected. To get it to toggle back off, I must select and deselect a target.

Do you have an error log of what happened?
N/A

To Reproduce

See initial problem description.

Screenshots
N/A

Did you try having WeakAuras as the only enabled addon and everything else (especially something like ElvUI) disabled?
No

Which version of WeakAuras are you using?
2.16.1

Are you on World of Warcraft Classic or Retail?

  • Retail

Was it working in a previous version? If yes, which was the last good one?
Unknown

Additional Info

{
    ["authorOptions"] = {
    },
    ["yOffset"] = 0,
    ["anchorPoint"] = "CENTER",
    ["cooldownSwipe"] = true,
    ["cooldownEdge"] = false,
    ["actions"] = {
        ["start"] = {
            ["do_glow"] = false,
            ["glow_type"] = "buttonOverlay",
            ["glow_action"] = "show",
            ["glow_frame"] = "WeakAuras:Razor Coral",
        },
        ["finish"] = {
        },
        ["init"] = {
            ["do_custom"] = false,
        },
    },
    ["triggers"] = {
        [1] = {
            ["trigger"] = {
                ["track"] = "auto",
                ["itemName"] = 0,
                ["auranames"] = {
                    [1] = "Razor Coral",
                },
                ["matchesShowOn"] = "showAlways",
                ["genericShowOn"] = "showAlways",
                ["unit"] = "target",
                ["names"] = {
                },
                ["use_genericShowOn"] = true,
                ["ownOnly"] = false,
                ["duration"] = "1",
                ["debuffType"] = "HARMFUL",
                ["spellName"] = 296208,
                ["type"] = "status",
                ["use_remaining"] = false,
                ["subeventSuffix"] = "_CAST_START",
                ["unevent"] = "auto",
                ["useName"] = true,
                ["event"] = "Cooldown Progress (Spell)",
                ["use_itemName"] = true,
                ["use_exact_spellName"] = false,
                ["realSpellName"] = "Heart Essence",
                ["use_spellName"] = true,
                ["spellIds"] = {
                },
                ["use_unit"] = true,
                ["use_absorbMode"] = true,
                ["subeventPrefix"] = "SPELL",
                ["use_track"] = true,
                ["remaining_operator"] = "==",
            },
            ["untrigger"] = {
                ["genericShowOn"] = "showAlways",
            },
        },
        ["disjunctive"] = "any",
        ["activeTriggerMode"] = -10,
    },
    ["internalVersion"] = 26,
    ["keepAspectRatio"] = true,
    ["selfPoint"] = "CENTER",
    ["desaturate"] = false,
    ["progressPrecision"] = 4,
    ["subRegions"] = {
        [1] = {
            ["text_shadowXOffset"] = 0,
            ["type"] = "subtext",
            ["text_text"] = "%1.p",
            ["text_color"] = {
                [1] = 1,
                [2] = 1,
                [3] = 1,
                [4] = 1,
            },
            ["text_font"] = "Expressway",
            ["text_shadowColor"] = {
                [1] = 0,
                [2] = 0,
                [3] = 0,
                [4] = 1,
            },
            ["text_shadowYOffset"] = 0,
            ["text_selfPoint"] = "AUTO",
            ["text_fontSize"] = 10,
            ["text_visible"] = true,
            ["text_anchorPoint"] = "CENTER",
            ["anchorYOffset"] = 0,
            ["text_justify"] = "CENTER",
            ["rotateText"] = "NONE",
            ["anchorXOffset"] = 0,
            ["text_fontType"] = "OUTLINE",
        },
        [2] = {
            ["glowFrequency"] = 0.25,
            ["glow"] = false,
            ["useGlowColor"] = false,
            ["glowType"] = "buttonOverlay",
            ["glowLength"] = 10,
            ["glowYOffset"] = 0,
            ["glowColor"] = {
                [1] = 1,
                [2] = 1,
                [3] = 1,
                [4] = 1,
            },
            ["type"] = "subglow",
            ["glowXOffset"] = 0,
            ["glowThickness"] = 1,
            ["glowScale"] = 1,
            ["glowLines"] = 8,
            ["glowBorder"] = false,
        },
    },
    ["height"] = 30,
    ["load"] = {
        ["use_petbattle"] = false,
        ["class_and_spec"] = {
            ["single"] = 263,
            ["multi"] = {
                [263] = true,
            },
        },
        ["use_vehicle"] = false,
        ["class"] = {
            ["multi"] = {
            },
        },
        ["use_class_and_spec"] = true,
        ["spec"] = {
            ["multi"] = {
            },
        },
        ["use_vehicleUi"] = false,
        ["use_itemequiped"] = false,
        ["itemequiped"] = 169311,
        ["use_level"] = true,
        ["level"] = "120",
        ["level_operator"] = ">=",
        ["size"] = {
            ["multi"] = {
            },
        },
    },
    ["anchorFrameFrame"] = "WeakAuras:Razor Coral",
    ["regionType"] = "icon",
    ["icon"] = true,
    ["animation"] = {
        ["start"] = {
            ["duration_type"] = "seconds",
            ["type"] = "none",
        },
        ["main"] = {
            ["duration_type"] = "seconds",
            ["type"] = "none",
        },
        ["finish"] = {
            ["duration_type"] = "seconds",
            ["type"] = "none",
        },
    },
    ["useTooltip"] = false,
    ["parent"] = "Shaman Cooldowns",
    ["xOffset"] = 0,
    ["cooldownTextDisabled"] = false,
    ["zoom"] = 0.25,
    ["auto"] = true,
    ["config"] = {
    },
    ["id"] = "Heart Essence",
    ["anchorFrameType"] = "SCREEN",
    ["alpha"] = 0,
    ["width"] = 30,
    ["frameStrata"] = 1,
    ["uid"] = "4AEPcEEpF3)",
    ["inverse"] = false,
    ["color"] = {
        [1] = 1,
        [2] = 1,
        [3] = 1,
        [4] = 1,
    },
    ["conditions"] = {
        [1] = {
            ["check"] = {
                ["trigger"] = -1,
                ["variable"] = "hastarget",
                ["value"] = 1,
            },
            ["changes"] = {
                [1] = {
                    ["value"] = 1,
                    ["property"] = "alpha",
                },
            },
        },
        [2] = {
            ["check"] = {
                ["trigger"] = 1,
                ["variable"] = "onCooldown",
                ["value"] = 1,
                ["op"] = ">",
            },
            ["changes"] = {
                [1] = {
                    ["value"] = true,
                    ["property"] = "sub.1.text_visible",
                },
                [2] = {
                    ["value"] = true,
                    ["property"] = "desaturate",
                },
                [3] = {
                    ["value"] = 1,
                    ["property"] = "alpha",
                },
            },
        },
        [3] = {
            ["check"] = {
                ["trigger"] = 1,
                ["variable"] = "name",
                ["op"] = "==",
                ["value"] = "Vision of Perfection",
            },
            ["changes"] = {
                [1] = {
                    ["value"] = 0,
                    ["property"] = "alpha",
                },
            },
        },
        [4] = {
            ["check"] = {
                ["trigger"] = -2,
                ["variable"] = "AND",
                ["checks"] = {
                    [1] = {
                        ["trigger"] = -1,
                        ["variable"] = "incombat",
                        ["value"] = 1,
                    },
                    [2] = {
                        ["trigger"] = 1,
                        ["variable"] = "onCooldown",
                        ["value"] = 0,
                    },
                },
            },
            ["changes"] = {
                [1] = {
                    ["value"] = true,
                    ["property"] = "sub.2.glow",
                },
            },
        },
    },
    ["cooldown"] = false,
    ["iconInset"] = 0,
}