Skip to content

Commit

Permalink
implement INC AoE from Fist of War (#7924)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nostrademous authored Jul 25, 2024
1 parent b12b727 commit a584de0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Data/Skills/sup_str.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1968,6 +1968,9 @@ skills["AncestralSlamSupport"] = {
["support_ancestral_slam_big_hit_hit_damage_+%_final"] = {
mod("FistOfWarDamageMultiplier", "BASE", nil),
},
["support_ancestral_slam_big_hit_area_+%"] = {
mod("FistOfWarIncAoE", "BASE", nil),
},
["ancestral_slam_interval_duration"] = {
mod("FistOfWarCooldown", "BASE", nil),
div = 1000,
Expand Down
3 changes: 3 additions & 0 deletions src/Export/Skills/sup_str.txt
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ statMap = {
["support_ancestral_slam_big_hit_hit_damage_+%_final"] = {
mod("FistOfWarDamageMultiplier", "BASE", nil),
},
["support_ancestral_slam_big_hit_area_+%"] = {
mod("FistOfWarIncAoE", "BASE", nil),
},
["ancestral_slam_interval_duration"] = {
mod("FistOfWarCooldown", "BASE", nil),
div = 1000,
Expand Down
3 changes: 3 additions & 0 deletions src/Modules/CalcOffence.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2647,9 +2647,12 @@ function calcs.offence(env, actor, activeSkill)
globalOutput.MaxFistOfWarDamageEffect = 1 + globalOutput.FistOfWarDamageMultiplier
if activeSkill.skillModList:Flag(nil, "Condition:WarcryMaxHit") then
output.FistOfWarDamageEffect = globalOutput.MaxFistOfWarDamageEffect
skillModList:NewMod("AreaOfEffect", "INC", skillModList:Sum("BASE", nil, "FistOfWarIncAoE"), "Max Fist of War Boosted AoE")
else
output.FistOfWarDamageEffect = globalOutput.AvgFistOfWarDamageEffect
skillModList:NewMod("AreaOfEffect", "INC", m_floor(skillModList:Sum("BASE", nil, "FistOfWarIncAoE") / 100 * globalOutput.FistOfWarUptimeRatio), "Avg Fist Of War Boosted AoE")
end
calcAreaOfEffect(skillModList, skillCfg, skillData, skillFlags, globalOutput, globalBreakdown)
globalOutput.TheoreticalOffensiveWarcryEffect = globalOutput.TheoreticalOffensiveWarcryEffect * globalOutput.AvgFistOfWarDamageEffect
globalOutput.TheoreticalMaxOffensiveWarcryEffect = globalOutput.TheoreticalMaxOffensiveWarcryEffect * globalOutput.MaxFistOfWarDamageEffect
else
Expand Down

0 comments on commit a584de0

Please sign in to comment.