Skip to content

Commit b385b45

Browse files
author
David Medgyesy
committed
Apply the Augyre rotation only while equipped
Refs #10431
1 parent 7c4f6ad commit b385b45

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

‎spec/System/TestConfigTab_spec.lua‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,15 @@ You have Resolute Technique while you do not have Elemental Overload]])
381381
loadBuildFromXML(build:SaveDB("code"))
382382
assert.are.equal("EleOverload", build.configTab.input.conditionHaveAugyre)
383383
assert.is_true(build.calcsTab.mainOutput.CritChance > 0)
384+
assert.is_truthy(isValueInArray(build.calcsTab.mainEnv.modDB:List(nil, "Keystone"), "Elemental Overload") ~= nil)
385+
386+
build.itemsTab.slots["Weapon 1"]:SetSelItemId(0)
387+
build.buildFlag = true
388+
runCallback("OnFrame")
389+
assert.is_true(isValueInArray(build.calcsTab.mainEnv.modDB:List(nil, "Keystone"), "Elemental Overload") == nil)
390+
loadBuildFromXML(build:SaveDB("code"))
391+
assert.are.equal("EleOverload", build.configTab.input.conditionHaveAugyre)
392+
assert.is_true(isValueInArray(build.calcsTab.mainEnv.modDB:List(nil, "Keystone"), "Elemental Overload") == nil)
384393
end)
385394

386395
it("Initializes new config sets with default placeholder states", function()

‎src/Modules/ConfigOptions.lua‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,11 +1698,8 @@ Huge sets the radius to 11.
16981698
-- The item's own modifier grants Resolute Technique when no buff is selected.
16991699
{ var = "conditionHaveAugyre", type = "list", label = "Augyre rotating buff:", ifFlag = "Condition:HaveAugyre", list = {{val="ResTechnique",label="Resolute Technique"},{val="EleOverload",label="Elemental Overload"}}, tooltip = "This option is specific to Augyre.", apply = function(val, modList, enemyModList)
17001700
if val == "EleOverload" then
1701-
modList:NewMod("Condition:HaveElementalOverload", "FLAG", true, "Config", { type = "Condition", var = "Combat" })
1702-
modList:NewMod("Keystone", "LIST", "Elemental Overload", "Config")
1703-
elseif val == "ResTechnique" then
1704-
modList:NewMod("Condition:HaveResoluteTechnique", "FLAG", true, "Config", { type = "Condition", var = "Combat" })
1705-
modList:NewMod("Keystone", "LIST", "Resolute Technique", "Config")
1701+
modList:NewMod("Condition:HaveElementalOverload", "FLAG", true, "Config", { type = "Condition", var = "Combat" }, { type = "Condition", var = "HaveAugyre" })
1702+
modList:NewMod("Keystone", "LIST", "Elemental Overload", "Config", { type = "Condition", var = "HaveAugyre" })
17061703
end
17071704
end },
17081705
{ var = "conditionHaveVulconus", type = "check", label = "Do you have Avatar Of Fire?", ifFlag = "Condition:HaveVulconus", tooltip = "This option is specific to Vulconus.", apply = function(val, modList, enemyModList)

0 commit comments

Comments
 (0)