Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions spec/System/TestSkills_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,40 @@ describe("TestSkills", function()
assert.True(baseCorruptingCryDps == build.calcsTab.mainOutput.CorruptingBloodDPS)
end)

it("Infernal Cry grants extra fire damage to empowered melee attacks", function()
build.skillsTab:PasteSocketGroup("Infernal Cry 20/0 1")
runCallback("OnFrame")

local infernalCry
for _, activeSkill in ipairs(build.calcsTab.mainEnv.player.activeSkillList) do
if activeSkill.activeEffect.grantedEffect.name == "Infernal Cry" then
infernalCry = activeSkill
break
end
end

assert.is_not_nil(infernalCry)
assert.are.equals("Warcry", infernalCry.buffList[1].type)
local foundExtraFire = false
for _, mod in ipairs(infernalCry.buffList[1].modList) do
if mod.name == "DamageGainAsFire" then
foundExtraFire = true
assert.are.equals("BASE", mod.type)
assert.True(mod.value > 0)
assert.are.equals(ModFlag.Melee, mod.flags)
local hasWarcryTag
local hasEmpoweredCondition
for _, tag in ipairs(mod) do
hasWarcryTag = hasWarcryTag or tag.type == "GlobalEffect" and tag.effectType == "Warcry"
hasEmpoweredCondition = hasEmpoweredCondition or tag.type == "Condition" and tag.var == "Empowered"
end
assert.True(hasWarcryTag)
assert.True(hasEmpoweredCondition)
end
end
assert.True(foundExtraFire)
end)

it("Test Atziri's Allure - ignore curse limit", function()
build.skillsTab:PasteSocketGroup("Elemental Weakness 20/0 1\nAtziri's Allure 1/0 1")
build.skillsTab:PasteSocketGroup("Flammability 20/0 1\n")
Expand Down
5 changes: 5 additions & 0 deletions src/Data/Skills/act_str.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7512,6 +7512,11 @@ skills["InfernalCryPlayer"] = {
label = "Infernal Cry",
incrementalEffectiveness = 0.054999999701977,
statDescriptionScope = "infernal_cry",
statMap = {
["infernal_cry_exerted_attack_all_damage_%_to_gain_as_fire_%"] = {
mod("DamageGainAsFire", "BASE", nil, ModFlag.Melee, 0, { type = "GlobalEffect", effectType = "Warcry" }, { type = "Condition", var = "Empowered" }),
},
},
baseFlags = {
warcry = true,
area = true,
Expand Down
5 changes: 5 additions & 0 deletions src/Export/Skills/act_str.txt
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,11 @@ statMap = {
#skill InfernalCryPlayer
#set InfernalCryPlayer
#flags warcry area duration
statMap = {
["infernal_cry_exerted_attack_all_damage_%_to_gain_as_fire_%"] = {
mod("DamageGainAsFire", "BASE", nil, ModFlag.Melee, 0, { type = "GlobalEffect", effectType = "Warcry" }, { type = "Condition", var = "Empowered" }),
},
}
#mods
#skillEnd

Expand Down