Skip to content

Commit bd0fd66

Browse files
author
LocalIdentity
committed
Fix conflicts
1 parent 4142a0f commit bd0fd66

7 files changed

Lines changed: 21 additions & 97 deletions

File tree

src/Data/ModCache.lua.rej

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/Data/SkillStatMap.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,12 @@ return {
288288
mod("RepeatCount", "BASE", nil, 0, 0, { type = "ModFlagOr", modFlags = bit.bor(ModFlag.WeaponMelee, ModFlag.Unarmed) }),
289289
mod("RepeatCount", "BASE", nil, 0, 0, { type = "SkillType", skillType = SkillType.RequiresShield }),
290290
},
291+
["skill_repeat_count"] = {
292+
mod("RepeatCount", "BASE", nil, 0, 0, { type = "SkillType", skillType = SkillType.Multicastable }),
293+
},
294+
["disable_skill_repeats"] = {
295+
flag("CannotRepeat"),
296+
},
291297
["display_skill_minions_level_is_corpse_level"] = {
292298
skill("minionLevelIsEnemyLevel", true),
293299
},

src/Data/SkillStatMap.lua.rej

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/Modules/CalcOffence.lua

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,16 @@ function calcs.offence(env, actor, activeSkill)
919919
end
920920
end
921921
end
922-
output.Repeats = 1 + (skillModList:Sum("BASE", skillCfg, "RepeatCount") or 0)
922+
local function repeatSkillTypesCheck(activeSkillTypes)
923+
local excludeSkillTypes = { SkillType.Instant, SkillType.Channel, SkillType.Triggered, SkillType.Retaliation, SkillType.NonRepeatable }
924+
for _, type in ipairs(excludeSkillTypes) do
925+
if activeSkillTypes[type] then
926+
return false
927+
end
928+
end
929+
return not skillModList:Flag(nil, "CannotRepeat") and ((activeSkillTypes[SkillType.Attack] or activeSkillTypes[SkillType.Spell]))
930+
end
931+
output.Repeats = 1 + (repeatSkillTypesCheck(activeSkill.skillTypes) and skillModList:Sum("BASE", skillCfg, "RepeatCount") or 0)
923932
if output.Repeats > 1 then
924933
output.RepeatCount = output.Repeats
925934
-- handle all the multipliers from Repeats
@@ -1010,6 +1019,9 @@ function calcs.offence(env, actor, activeSkill)
10101019
skillModList:NewMod("Damage", "MORE", (100 * output.Repeats + DamageFinalMoreValueTotal) / (1 + DamageFinalMoreValueTotal / 100) - 100, value.mod.source, value.mod.flags, value.mod.keywordFlags, unpack(value.mod))
10111020
end
10121021
end
1022+
if skillFlags.trap or skillFlags.mine then
1023+
skillModList:NewMod("DPS", "MORE", (output.Repeats - 1) * 100, "Repeat Count")
1024+
end
10131025
end
10141026
end
10151027
if skillData.gainPercentBaseWandDamageToSpells then

src/Modules/CalcOffence.lua.rej

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/Modules/ModParser.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2616,9 +2616,6 @@ local specialModList = {
26162616
-- Exerted Attacks
26172617
["exerted attacks deal (%d+)%% increased damage"] = function(num) return { mod("ExertIncrease", "INC", num, nil, ModFlag.Attack, 0) } end,
26182618
["exerted attacks have (%d+)%% chance to deal double damage"] = function(num) return { mod("ExertDoubleDamageChance", "BASE", num, nil, ModFlag.Attack, 0) } end,
2619-
-- Duelist (Fatal flourish)
2620-
["final repeat of attack skills deals (%d+)%% more damage"] = function(num) return { mod("RepeatFinalDamage", "MORE", num, nil, ModFlag.Attack, 0) } end,
2621-
["non%-travel attack skills repeat an additional time"] = { mod("RepeatCount", "BASE", 1, nil, ModFlag.Attack, 0, { type = "Condition", varList = {"averageRepeat", "alwaysFinalRepeat"} }) },
26222619
-- Leech Related
26232620
["life leech is instant"] = { mod("InstantLifeLeech", "BASE", 100), },
26242621
["mana leech is instant"] = { mod("InstantManaLeech", "BASE", 100), },
@@ -5833,6 +5830,8 @@ local specialModList = {
58335830
mod("PartialIgnoreEnemyPhysicalDamageReduction", "BASE", num),
58345831
} end,
58355832
["hits ignore non%-negative elemental resistances of frozen enemies"] = { flag("IgnoreNonNegativeEleRes", { type = "ActorCondition", actor = "enemy", var = "Frozen" }) },
5833+
["final repeat of attack skills deals (%d+)%% more damage"] = function(num) return { mod("RepeatFinalDamage", "MORE", num, nil, ModFlag.Attack, 0) } end,
5834+
["non%-travel attack skills repeat an additional time"] = { mod("RepeatCount", "BASE", 1, nil, ModFlag.Attack, 0, { type = "Condition", varList = {"averageRepeat", "alwaysFinalRepeat"} }) },
58365835
["viper strike and pestilent strike deal (%d+)%% increased attack damage per frenzy charge"] = function(num) return { mod("Damage", "INC", num, nil, ModFlag.Attack, { type = "Multiplier", var = "FrenzyCharge" }, { type = "SkillName", skillNameList = { "Viper Strike", "Pestilent Strike" }, includeTransfigured = true }) } end,
58375836
["shield charge and chain hook have (%d+)%% increased attack speed per (%d+) rampage kills"] = function(inc, _, num) return { mod("Speed", "INC", inc, nil, ModFlag.Attack, { type = "Multiplier", var = "Rampage", div = num, limit = 1000 / num, limitTotal = true }, { type = "SkillName", skillNameList = { "Shield Charge", "Chain Hook" }, includeTransfigured = true }) } end,
58385837
["tectonic slam and infernal blow deal (%d+)%% increased attack damage per (%d+) armour"] = function(inc, _, num) return { mod("Damage", "INC", inc, nil, ModFlag.Attack, { type = "PerStat", stat = "Armour", div = num }, { type = "SkillName", skillNameList = { "Tectonic Slam", "Infernal Blow" }, includeTransfigured = true }) } end,

src/Modules/ModParser.lua.rej

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)