PlexusStatusRaidDebuff

887k Downloads

Using spellid instead of spellname

Elnarfim opened this issue ยท 0 comments

commented

Debuff table is using spellname for keys but there's a problem that there are same spellnames

the addon scans only one table for same several spellnames so apply first one setting

for example
there are spell "phewphew" and they have three spellids in "RAID A" zone (phewphew ids 34567, 34568, 34569)
and I want to change each spell settings but I can't do this because of its table structure

["debuff_options"] = {
		["RAID A"] = {
			["phewphew"] = {
				["i_prior"] = 7,
			},
			["blahblah"] = {
				["i_prior"] = 5,
				["stackable"] = false,
			},
			["hooray"] = {
				["i_prior"] = 7,
			},
			["bossattack"] = {
				["timer"] = false,
			},
	       },
}

there is only one table for "phewphew" ability
so I need to suggest to change table structure into spellid base
the table should be like this

["debuff_options"] = {
		["RAID A"] = {
			[34567] = {
                                ["name"] = "phewphew",
				["i_prior"] = 7,
			},
			[34568] = {
                                ["name"] = "phewphew",
				["i_prior"] = 8,
				["stackable"] = false,
			},
			[34569] = {
                                ["name"] = "phewphew",
				["i_prior"] = 5,
				["timer"] = false,
				["stackable"] = true,
			},
			[13579] = {
                                ["name"] = "blahblah",
				["i_prior"] = 5,
				["stackable"] = false,
			},
                        [47568] = {
                                ["name"] = "hooray",
				["i_prior"] = 7,
			},
                        [52347] = {
                                ["name"] = "bossattack",
				["timer"] = false,
			},
	       },
}