Skip to content

Commit 51e13e1

Browse files
Merge pull request #5 from deathbeam/bleed-stuff
Enable bleed for spells and fix bleed multi when moving
2 parents 4a8f20d + 70c3c0b commit 51e13e1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Modules/CalcOffence.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3766,7 +3766,7 @@ function calcs.offence(env, actor, activeSkill)
37663766

37673767
-- Calculate chance to inflict secondary dots/status effects
37683768
cfg.skillCond["CriticalStrike"] = true
3769-
if not skillFlags.attack or skillModList:Flag(cfg, "CannotBleed") then
3769+
if not skillFlags.hit or skillModList:Flag(cfg, "CannotBleed") then
37703770
output.BleedChanceOnCrit = 0
37713771
else
37723772
output.BleedChanceOnCrit = m_min(100, skillModList:Sum("BASE", cfg, "BleedChance") + enemyDB:Sum("BASE", nil, "SelfBleedChance"))
@@ -3787,7 +3787,7 @@ function calcs.offence(env, actor, activeSkill)
37873787
output.KnockbackChanceOnCrit = skillModList:Sum("BASE", cfg, "EnemyKnockbackChance")
37883788
end
37893789
cfg.skillCond["CriticalStrike"] = false
3790-
if not skillFlags.attack or skillModList:Flag(cfg, "CannotBleed") then
3790+
if not skillFlags.hit or skillModList:Flag(cfg, "CannotBleed") then
37913791
output.BleedChanceOnHit = 0
37923792
else
37933793
output.BleedChanceOnHit = m_min(100, skillModList:Sum("BASE", cfg, "BleedChance") + enemyDB:Sum("BASE", nil, "SelfBleedChance"))

src/Modules/CalcSetup.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ function calcs.initModDB(env, modDB)
4343
modDB:NewMod("MaxLifeLeechRate", "BASE", 20, "Base")
4444
modDB:NewMod("MaxManaLeechRate", "BASE", 20, "Base")
4545
modDB:NewMod("ImpaleStacksMax", "BASE", 5, "Base")
46+
modDB:NewMod("IgniteStacksMax", "BASE", 1, "Base")
4647
modDB:NewMod("BleedStacksMax", "BASE", 1, "Base")
4748
modDB:NewMod("PoisonStacksMax", "BASE", 1, "Base")
4849
modDB:NewMod("MaxEnergyShieldLeechRate", "BASE", 10, "Base")
@@ -610,7 +611,7 @@ function calcs.initEnv(build, mode, override, specEnv)
610611
modDB:NewMod("Speed", "MORE", 20, "Base", ModFlag.Attack, { type = "Condition", var = "DualWielding" }, { type = "Condition", var = "DoubledInherentDualWieldingSpeed"})
611612
modDB:NewMod("BlockChance", "BASE", 20, "Base", { type = "Condition", var = "DualWielding" }, { type = "Condition", var = "NoInherentBlock", neg = true}, { type = "Condition", var = "DoubledInherentDualWieldingBlock", neg = true})
612613
modDB:NewMod("BlockChance", "BASE", 40, "Base", { type = "Condition", var = "DualWielding" }, { type = "Condition", var = "NoInherentBlock", neg = true}, { type = "Condition", var = "DoubledInherentDualWieldingBlock"})
613-
modDB:NewMod("Damage", "MORE", 200, "Base", 0, KeywordFlag.Bleed, { type = "ActorCondition", actor = "enemy", var = "Moving" }, { type = "Condition", var = "NoExtraBleedDamageToMovingEnemy", neg = true })
614+
modDB:NewMod("AilmentMagnitude", "MORE", 100, "Base", 0, KeywordFlag.Bleed, { type = "ActorCondition", actor = "enemy", var = "Moving" }, { type = "Condition", var = "NoExtraBleedDamageToMovingEnemy", neg = true })
614615
modDB:NewMod("Condition:BloodStance", "FLAG", true, "Base", { type = "Condition", var = "SandStance", neg = true })
615616
modDB:NewMod("Condition:PrideMinEffect", "FLAG", true, "Base", { type = "Condition", var = "PrideMaxEffect", neg = true })
616617
modDB:NewMod("PerBrutalTripleDamageChance", "BASE", 3, "Base")

0 commit comments

Comments
 (0)