Skip to content

Commit fa7f230

Browse files
authored
Generify soul eater parsing (#5695)
Generify soul eater parsing, currently hardcoded for Zerphi's Heart and Soulthirst. Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
1 parent 5538033 commit fa7f230

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Modules/ModParser.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@ local modNameList = {
715715
["elusive"] = "Condition:CanBeElusive",
716716
["onslaught"] = "Condition:Onslaught",
717717
["rampage"] = "Condition:Rampage",
718+
["soul eater"] = "Condition:CanHaveSoulEater",
718719
["phasing"] = "Condition:Phasing",
719720
["unholy might"] = "Condition:UnholyMight",
720721
}
@@ -1491,6 +1492,7 @@ local modTagList = {
14911492
["if you haven't cast dash recently"] = { tag = { type = "Condition", var = "CastDashRecently", neg = true } },
14921493
["if you[' ]h?a?ve cast dash recently"] = { tag = { type = "Condition", var = "CastDashRecently" } },
14931494
["if you[' ]h?a?ve used a vaal skill recently"] = { tag = { type = "Condition", var = "UsedVaalSkillRecently" } },
1495+
["when you use a vaal skill"] = { tag = { type = "Condition", var = "UsedVaalSkillRecently" } },
14941496
["if you haven't used a brand skill recently"] = { tag = { type = "Condition", var = "UsedBrandRecently", neg = true } },
14951497
["if you[' ]h?a?ve used a brand skill recently"] = { tag = { type = "Condition", var = "UsedBrandRecently" } },
14961498
["if you[' ]h?a?ve spent (%d+) total mana recently"] = function(num) return { tag = { type = "MultiplierThreshold", var = "ManaSpentRecently", threshold = num } } end,
@@ -2749,6 +2751,7 @@ local specialModList = {
27492751
["phasing"] = { flag("Condition:Phasing") },
27502752
["onslaught"] = { flag("Condition:Onslaught") },
27512753
["rampage"] = { flag("Condition:Rampage") },
2754+
["soul eater"] = { flag("Condition:CanHaveSoulEater") },
27522755
["unholy might"] = { flag("Condition:UnholyMight") },
27532756
["elusive"] = { flag("Condition:CanBeElusive") },
27542757
["adrenaline"] = { flag("Condition:Adrenaline") },
@@ -2975,8 +2978,6 @@ local specialModList = {
29752978
["counterattacks have a (%d+)%% chance to debilitate on hit for (%d+) seconds?"] = function (num) return { mod("DebilitateChance", "BASE", num) } end,
29762979
["eat a soul when you hit a unique enemy, no more than once every second"] = { flag("Condition:CanHaveSoulEater") },
29772980
["maximum (%d+) eaten souls"] = function(num) return { mod("SoulEaterMax", "OVERRIDE", num) } end,
2978-
["gain soul eater during any flask effect"] = { flag("Condition:CanHaveSoulEater", { type = "Condition", var = "UsingFlask" }) },
2979-
["gain soul eater for (%d+) seconds when you use a vaal skill"] = { flag("Condition:CanHaveSoulEater", { type = "Condition", var = "UsedVaalSkillRecently" }) },
29802981
["(%d+)%% increased attack and cast speed if you've killed recently"] = function(num) return { --This boot enchant gives a buff that applies both stats individually
29812982
mod("Speed", "INC", num, nil, ModFlag.Cast, { type = "Condition", var = "KilledRecently" }),
29822983
mod("Speed", "INC", num, nil, ModFlag.Attack, { type = "Condition", var = "KilledRecently" }),
@@ -4072,6 +4073,7 @@ local flagTypes = {
40724073
["phasing"] = "Condition:Phasing",
40734074
["onslaught"] = "Condition:Onslaught",
40744075
["rampage"] = "Condition:Rampage",
4076+
["soul eater"] = "Condition:CanHaveSoulEater",
40754077
["adrenaline"] = "Condition:Adrenaline",
40764078
["elusive"] = "Condition:CanBeElusive",
40774079
["fortify"] = "Condition:Fortified",

0 commit comments

Comments
 (0)