Skip to content

Commit 62a8aa2

Browse files
briansonnenbergLocalIdentity
andauthored
Fix "Shapeshifted" condition being toggled on every build. (#2346)
* Fix Shapeshifted condition being toggled on every build. * Revert "Fix Shapeshifted condition being toggled on every build." This reverts commit 31b01e7. * Simpler fix Move the shapeshifted condition to the demon form gem --------- Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent f3a85ac commit 62a8aa2

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/Data/Skills/other.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4458,6 +4458,9 @@ skills["DemonFormPlayer"] = {
44584458
},
44594459
baseFlags = {
44604460
},
4461+
baseMods = {
4462+
flag("Condition:Shapeshifted", { type = "GlobalEffect", effectType = "Buff" }, { type = "Condition", var = "DemonForm" }),
4463+
},
44614464
constantStats = {
44624465
{ "demon_form_spell_damage_+%_final_per_stack", 3 },
44634466
},

src/Export/Skills/other.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ statMap = {
304304
mod("LifeDegen", "BASE", nil, 0, 0, { type = "Condition", var = "DemonForm" }, { type = "GlobalEffect", effectType = "Buff", effectName = "Demon Form" }, { type = "Multiplier", var = "DemonFlameStacks", limitVar = "DemonFlameMaximum" } ),
305305
div = 60,
306306
},
307+
#baseMod flag("Condition:Shapeshifted", { type = "GlobalEffect", effectType = "Buff" }, { type = "Condition", var = "DemonForm" })
307308
},
308309
#mods
309310
#skillEnd

src/Modules/ConfigOptions.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,6 @@ local configSettings = {
342342
end },
343343
{ label = "Demon Form:", ifSkill = "Demon Form" },
344344
{ var = "inDemonForm", type = "check", label = "Are you in Demon Form?", ifSkill = "Demon Form", defaultState = true, tooltip = "Players need a minimum of 2 ^xE05030Life ^7to enter Demon Form, so you cannot use it with Chaos Inoculation", apply = function(val, modList, enemyModList)
345-
modList:NewMod("Condition:Shapeshifted", "FLAG", true, "Config")
346345
modList:NewMod("Condition:DemonForm", "FLAG", true, "Config", { type = "StatThreshold", stat = "Life", threshold = 2 })
347346
end },
348347
{ var = "demonFormStacks", type = "count", label = "Demonflame Stacks", ifSkill = "Demon Form", defaultPlaceholderState = 10, apply = function(val, modList, enemyModList)

0 commit comments

Comments
 (0)