Skip to content

Commit f0c025a

Browse files
LocalIdentityLocalIdentity
andauthored
Fix repeat damage mods not working properly with minions (#1223)
Copy of PathOfBuildingCommunity/PathOfBuilding#8771 Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 575be08 commit f0c025a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/Data/SkillStatMap.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ return {
266266
mod("RepeatCount", "BASE", nil, 0, 0, {type = "SkillType", skillType = SkillType.Cascadable }),
267267
},
268268
["base_melee_attack_repeat_count"] = {
269-
mod("RepeatCount", "BASE", nil, 0, 0, { type = "SkillType", skillType = SkillType.Multistrikeable }),
269+
mod("RepeatCount", "BASE", nil, 0, 0, { type = "ModFlagOr", modFlags = bit.bor(ModFlag.WeaponMelee, ModFlag.Unarmed) }),
270+
mod("RepeatCount", "BASE", nil, 0, 0, { type = "SkillType", skillType = SkillType.RequiresShield }),
270271
},
271272
["display_skill_minions_level_is_corpse_level"] = {
272273
skill("minionLevelIsEnemyLevel", true),

src/Modules/ConfigOptions.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,8 +779,10 @@ Huge sets the radius to 11.
779779
}, defaultIndex = 2, apply = function(val, modList, enemyModList)
780780
if val == "AVERAGE" then
781781
modList:NewMod("Condition:averageRepeat", "FLAG", true, "Config")
782+
modList:NewMod("MinionModifier", "LIST", { mod = modLib.createMod("Condition:averageRepeat", "FLAG", true, "Config") })
782783
elseif val == "FINAL" or val == "FINAL_DPS" then
783784
modList:NewMod("Condition:alwaysFinalRepeat", "FLAG", true, "Config")
785+
modList:NewMod("MinionModifier", "LIST", { mod = modLib.createMod("Condition:alwaysFinalRepeat", "FLAG", true, "Config") })
784786
end
785787
end },
786788
{ var = "ruthlessSupportMode", type = "list", label = "Ruthless Support Mode:", ifSkill = "Ruthless", tooltip = "Controls how the hit/ailment effect of Ruthless Support is calculated:\n\tAverage: damage is based on the average application\n\tMax Effect: damage is based on maximum effect", list = {{val="AVERAGE",label="Average"},{val="MAX",label="Max Effect"}} },

0 commit comments

Comments
 (0)