WeakAuras

WeakAuras

208M Downloads

spell cast succeeded trigger can eat additional spell ids

emptyrivers opened this issue ยท 0 comments

commented

Is there an existing issue for this?

  • I have searched the existing open and closed issues.

Description

i didn't bother to look at what the behavior of a trigger with this bug is, but the trigger's spellId array does have a hole where it probably shouldn't:

{
    ["actions"] = {
        ["finish"] = {
        },
        ["init"] = {
        },
        ["start"] = {
        },
    },
    ["adjustedMax"] = "",
    ["adjustedMin"] = "",
    ["alpha"] = 1,
    ["anchorFrameType"] = "SCREEN",
    ["anchorPoint"] = "CENTER",
    ["animation"] = {
        ["finish"] = {
            ["duration_type"] = "seconds",
            ["easeStrength"] = 3,
            ["easeType"] = "none",
            ["type"] = "none",
        },
        ["main"] = {
            ["duration_type"] = "seconds",
            ["easeStrength"] = 3,
            ["easeType"] = "none",
            ["type"] = "none",
        },
        ["start"] = {
            ["duration_type"] = "seconds",
            ["easeStrength"] = 3,
            ["easeType"] = "none",
            ["type"] = "none",
        },
    },
    ["authorOptions"] = {
    },
    ["color"] = {
        [1] = 1,
        [2] = 1,
        [3] = 1,
        [4] = 1,
    },
    ["conditions"] = {
        [1] = {
            ["changes"] = {
                [1] = {
                    ["property"] = "desaturate",
                    ["value"] = true,
                },
            },
            ["check"] = {
                ["checks"] = {
                    [1] = {
                        ["trigger"] = 1,
                        ["value"] = 0,
                        ["variable"] = "show",
                    },
                    [2] = {
                        ["trigger"] = 2,
                        ["value"] = 1,
                        ["variable"] = "onCooldown",
                    },
                },
                ["trigger"] = -2,
                ["variable"] = "AND",
            },
        },
        [2] = {
            ["changes"] = {
                [1] = {
                    ["property"] = "color",
                    ["value"] = {
                        [1] = 0.47450983524323,
                        [2] = 0.5137255191803,
                        [3] = 1,
                        [4] = 1,
                    },
                },
            },
            ["check"] = {
                ["op"] = "<",
                ["trigger"] = 2,
                ["value"] = 1,
                ["variable"] = "insufficientResources",
            },
        },
    },
    ["config"] = {
    },
    ["cooldown"] = true,
    ["cooldownEdge"] = true,
    ["cooldownSwipe"] = true,
    ["cooldownTextDisabled"] = true,
    ["desaturate"] = false,
    ["displayIcon"] = "",
    ["frameStrata"] = 1,
    ["height"] = 36,
    ["icon"] = true,
    ["iconSource"] = -1,
    ["id"] = "Warlock - Demonology - Summon Demonic Tyrant",
    ["information"] = {
    },
    ["internalVersion"] = 75,
    ["inverse"] = false,
    ["keepAspectRatio"] = true,
    ["load"] = {
        ["class"] = {
            ["multi"] = {
            },
        },
        ["class_and_spec"] = {
            ["single"] = 266,
        },
        ["size"] = {
            ["multi"] = {
            },
        },
        ["spec"] = {
            ["multi"] = {
            },
        },
        ["talent"] = {
            ["multi"] = {
                [125850] = true,
            },
        },
        ["use_class_and_spec"] = true,
        ["use_dragonriding"] = false,
        ["use_never"] = false,
        ["use_petbattle"] = false,
        ["use_talent"] = false,
        ["use_vehicleUi"] = false,
    },
    ["parent"] = "SpinningPlates",
    ["progressSource"] = {
        [1] = -1,
        [2] = "",
    },
    ["regionType"] = "icon",
    ["selfPoint"] = "CENTER",
    ["subRegions"] = {
        [1] = {
            ["type"] = "subbackground",
        },
        [2] = {
            ["glow"] = false,
            ["glowBorder"] = false,
            ["glowColor"] = {
                [1] = 1,
                [2] = 1,
                [3] = 1,
                [4] = 1,
            },
            ["glowDuration"] = 1,
            ["glowFrequency"] = 0.25,
            ["glowLength"] = 10,
            ["glowLines"] = 8,
            ["glowScale"] = 1,
            ["glowThickness"] = 1,
            ["glowType"] = "Proc",
            ["glowXOffset"] = 0,
            ["glowYOffset"] = 0,
            ["type"] = "subglow",
            ["useGlowColor"] = false,
        },
        [3] = {
            ["anchorXOffset"] = 0,
            ["anchorYOffset"] = 0,
            ["rotateText"] = "NONE",
            ["text_anchorPoint"] = "CENTER",
            ["text_automaticWidth"] = "Auto",
            ["text_color"] = {
                [1] = 1,
                [2] = 1,
                [3] = 1,
                [4] = 1,
            },
            ["text_fixedWidth"] = 64,
            ["text_font"] = "Expressway",
            ["text_fontSize"] = 20,
            ["text_fontType"] = "OUTLINE",
            ["text_justify"] = "CENTER",
            ["text_selfPoint"] = "AUTO",
            ["text_shadowColor"] = {
                [1] = 0,
                [2] = 0,
                [3] = 0,
                [4] = 1,
            },
            ["text_shadowXOffset"] = 0,
            ["text_shadowYOffset"] = 0,
            ["text_text"] = "%p",
            ["text_text_format_p_format"] = "timed",
            ["text_text_format_p_time_dynamic_threshold"] = 10,
            ["text_text_format_p_time_format"] = 0,
            ["text_text_format_p_time_legacy_floor"] = false,
            ["text_text_format_p_time_mod_rate"] = true,
            ["text_text_format_p_time_precision"] = 1,
            ["text_visible"] = true,
            ["text_wordWrap"] = "WordWrap",
            ["type"] = "subtext",
        },
        [4] = {
            ["anchorXOffset"] = 0,
            ["anchorYOffset"] = 0,
            ["rotateText"] = "NONE",
            ["text_anchorPoint"] = "TOP",
            ["text_automaticWidth"] = "Auto",
            ["text_color"] = {
                [1] = 1,
                [2] = 0.88627457618713,
                [3] = 0.76862752437592,
                [4] = 1,
            },
            ["text_fixedWidth"] = 64,
            ["text_font"] = "Expressway",
            ["text_fontSize"] = 18,
            ["text_fontType"] = "OUTLINE",
            ["text_justify"] = "CENTER",
            ["text_selfPoint"] = "AUTO",
            ["text_shadowColor"] = {
                [1] = 0,
                [2] = 0,
                [3] = 0,
                [4] = 1,
            },
            ["text_shadowXOffset"] = 0,
            ["text_shadowYOffset"] = 0,
            ["text_text"] = "%1.stacks",
            ["text_text_format_1.stacks_format"] = "none",
            ["text_text_format_2.spellCount_format"] = "none",
            ["text_text_format_s_format"] = "none",
            ["text_visible"] = false,
            ["text_wordWrap"] = "WordWrap",
            ["type"] = "subtext",
        },
    },
    ["triggers"] = {
        [1] = {
            ["trigger"] = {
                ["debuffType"] = "HELPFUL",
                ["duration"] = "15",
                ["event"] = "Spell Cast Succeeded",
                ["names"] = {
                },
                ["spellId"] = {
                    [1] = 265187,
                    [3] = 1,
                },
                ["spellIds"] = {
                },
                ["subeventPrefix"] = "SPELL",
                ["subeventSuffix"] = "_CAST_START",
                ["type"] = "event",
                ["unit"] = "player",
                ["use_spellId"] = true,
                ["use_unit"] = true,
            },
            ["untrigger"] = {
            },
        },
        [2] = {
            ["trigger"] = {
                ["auranames"] = {
                    [1] = "267171",
                },
                ["debuffType"] = "HELPFUL",
                ["event"] = "Cooldown Progress (Spell)",
                ["genericShowOn"] = "showAlways",
                ["names"] = {
                },
                ["ownOnly"] = true,
                ["spellIds"] = {
                },
                ["spellName"] = 264119,
                ["subeventPrefix"] = "SPELL",
                ["subeventSuffix"] = "_CAST_START",
                ["type"] = "spell",
                ["unit"] = "pet",
                ["useName"] = true,
                ["use_genericShowOn"] = true,
                ["use_spellName"] = true,
                ["use_track"] = true,
            },
            ["untrigger"] = {
            },
        },
        ["activeTriggerMode"] = -10,
        ["disjunctive"] = "any",
    },
    ["uid"] = "DAeMYxODYyC",
    ["useAdjustededMax"] = false,
    ["useAdjustededMin"] = false,
    ["useCooldownModRate"] = true,
    ["width"] = 48,
    ["xOffset"] = 0,
    ["yOffset"] = 0,
    ["zoom"] = 0.3,
}

WeakAuras Version

tip of main branch

World of Warcraft Flavor

Retail (Default)

World of Warcraft Region

US/NA

Tested with only WeakAuras

I got this issue with only WeakAuras enabled

Lua Error

No response

Reproduction Steps

  1. create an other events -> spell cast succeeded trigger
  2. enable the spell id option
  3. add at least 3 spell ids
  4. remove the second spell id

Expected:

2nd spell id is removed, 3rd+ move up one step to take its place.

Actual:

All but the first spell id will appear to vanish. Adding a second spell id will revive the 3rd+ spell ids in the UI.

Last Good Version

No response

Screenshots

Export String

!WA:2!1zXZVTXs54ULwj)KAt971O0hvVNjIg9AvjQXqtVGuLTJtBcPXM1onTqPEND3X7onRNzEZmRt87uRPhIaXfFHYdozXr4Ipaxr5aNhz9oJqfjesWP(xaFZS2jQpLMdXFFFZ3V)5MBJcDlewi8OBoIeWOnzPIa81NBmk8fPsfo8rOdp3Pie65e9R3PJeRYngrdIzIgmcv5xT2oTQ5ojGXsczhqBEaHJ9oEgATWiSNafOimQCnxPcju597qOezC(kWpQ8ducsuewiF(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