Skip to content

Commit 7a57ac2

Browse files
author
LocalIdentity
committed
Merge remote-tracking branch 'Quotae/rage-rework' into dev
2 parents dd4fcec + 2fe7f25 commit 7a57ac2

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

Data/3_0/Skills/sup_str.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2636,7 +2636,7 @@ skills["SupportRage"] = {
26362636
statDescriptionScope = "gem_stat_descriptions",
26372637
statMap = {
26382638
["support_rage_gain_rage_on_melee_hit_cooldown_ms"] = {
2639-
flag("Condition:CanGainRage"),
2639+
flag("Condition:CanGainRage", { type = "GlobalEffect", effectType = "Buff" }),
26402640
mod("Dummy", "DUMMY", 1, 0, 0, { type = "Condition", var = "CanGainRage" }),
26412641
},
26422642
["attack_minimum_added_physical_damage_with_at_least_10_rage"] = {
@@ -2646,10 +2646,10 @@ skills["SupportRage"] = {
26462646
mod("PhysicalMax", "BASE", nil, bit.bor(ModFlag.Attack, ModFlag.Weapon), 0, { type = "MultiplierThreshold", var = "Rage", threshold = 10 })
26472647
},
26482648
["attack_minimum_added_physical_damage_per_10_rage"] = {
2649-
mod("PhysicalMin", "BASE", nil, bit.bor(ModFlag.Attack, ModFlag.Weapon), 0, { type = "Multiplier", var = "Rage", div = 10, limit = 5 })
2649+
mod("PhysicalMin", "BASE", nil, bit.bor(ModFlag.Attack, ModFlag.Weapon), 0, { type = "Multiplier", var = "Rage", div = 10 })
26502650
},
26512651
["attack_maximum_added_physical_damage_per_10_rage"] = {
2652-
mod("PhysicalMax", "BASE", nil, bit.bor(ModFlag.Attack, ModFlag.Weapon), 0, { type = "Multiplier", var = "Rage", div = 10, limit = 5 })
2652+
mod("PhysicalMax", "BASE", nil, bit.bor(ModFlag.Attack, ModFlag.Weapon), 0, { type = "Multiplier", var = "Rage", div = 10 })
26532653
},
26542654
},
26552655
baseMods = {

Export/Skills/sup_str.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ local skills, mod, flag, skill = ...
318318
#skill SupportRage
319319
statMap = {
320320
["support_rage_gain_rage_on_melee_hit_cooldown_ms"] = {
321-
flag("Condition:CanGainRage"),
321+
flag("Condition:CanGainRage", { type = "GlobalEffect", effectType = "Buff" } ),
322322
mod("Dummy", "DUMMY", 1, 0, 0, { type = "Condition", var = "CanGainRage" }),
323323
},
324324
["attack_minimum_added_physical_damage_with_at_least_10_rage"] = {
@@ -328,10 +328,10 @@ local skills, mod, flag, skill = ...
328328
mod("PhysicalMax", "BASE", nil, bit.bor(ModFlag.Attack, ModFlag.Weapon), 0, { type = "MultiplierThreshold", var = "Rage", threshold = 10 })
329329
},
330330
["attack_minimum_added_physical_damage_per_10_rage"] = {
331-
mod("PhysicalMin", "BASE", nil, bit.bor(ModFlag.Attack, ModFlag.Weapon), 0, { type = "Multiplier", var = "Rage", div = 10, limit = 5 })
331+
mod("PhysicalMin", "BASE", nil, bit.bor(ModFlag.Attack, ModFlag.Weapon), 0, { type = "Multiplier", var = "Rage", div = 10 })
332332
},
333333
["attack_maximum_added_physical_damage_per_10_rage"] = {
334-
mod("PhysicalMax", "BASE", nil, bit.bor(ModFlag.Attack, ModFlag.Weapon), 0, { type = "Multiplier", var = "Rage", div = 10, limit = 5 })
334+
mod("PhysicalMax", "BASE", nil, bit.bor(ModFlag.Attack, ModFlag.Weapon), 0, { type = "Multiplier", var = "Rage", div = 10 })
335335
},
336336
},
337337
#mods

Modules/CalcDefence-3_0.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,8 @@ function calcs.defence(env, actor)
339339
end
340340
end
341341
if modDB:Sum("BASE", nil, "RageRegen") > 0 then
342+
modDB:NewMod("Condition:CanGainRage", "FLAG", true, "RageRegen")
343+
modDB:NewMod("Dummy", "DUMMY", 1, "RageRegen", 0, { type = "Condition", var = "CanGainRage" }) -- Make the Configuration option appear
342344
local base = modDB:Sum("BASE", nil, "RageRegen")
343345
if modDB:Flag(nil, "ManaRegenToRageRegen") then
344346
local mana = modDB:Sum("INC", nil, "ManaRegen")

Modules/CalcPerform.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ local function doActorMisc(env, actor)
472472
modDB:NewMod("ChaosDamage", "MORE", 10 * effect, "Infusion")
473473
end
474474
end
475-
if modDB:Flag(nil, "Condition:CanGainRage") then
475+
if modDB:Flag(nil, "Condition:CanGainRage") or modDB:Sum("BASE", nil, "RageRegen") > 0 then
476476
output.MaximumRage = modDB:Sum("BASE", skillCfg, "MaximumRage")
477477
modDB:NewMod("Multiplier:Rage", "BASE", 1, "Base", { type = "Multiplier", var = "RageStack", limit = output.MaximumRage })
478478
end

Modules/ModParser-3_0.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,6 +1311,10 @@ local specialModList = {
13111311
["cannot be stunned while you have at least (%d+) rage"] = function(num) return { mod("AvoidStun", "BASE", 100, { type = "MultiplierThreshold", var = "Rage", threshold = 25 }) } end,
13121312
["lose ([%d%.]+)%% of life per second per rage while you are not losing rage"] = function(num) return { mod("LifeDegen", "BASE", 1, { type = "PercentStat", stat = "Life", percent = num }, { type = "Multiplier", var = "Rage", limit = 50 }) } end,
13131313
["if you've warcried recently, you and nearby allies have (%d+)%% increased attack speed"] = function(num) return { mod("ExtraAura", "LIST", { mod = mod("Speed", "INC", num, nil, ModFlag.Attack) }, { type = "Condition", var = "UsedWarcryRecently" }) } end,
1314+
["warcries grant (%d+) rage per (%d+) power if you have less than (%d+) rage"] = {
1315+
flag("Condition:CanGainRage"),
1316+
mod("Dummy", "DUMMY", 1, { type = "Condition", var = "CanGainRage" }), -- Make the Configuration option appear
1317+
},
13141318
-- Champion
13151319
["you have fortify"] = { flag("Condition:Fortify") },
13161320
["cannot be stunned while you have fortify"] = { mod("AvoidStun", "BASE", 100, { type = "Condition", var = "Fortify" }) },

0 commit comments

Comments
 (0)