Rotten armor DR only applies to ranged damage despite indications that it should also apply to melee

Issue Type (Required):

Enemy Mechanics

Issue Description (Required):

Based on the event description and the code below, it seems likely that the rotten armor damage reduction thresholds are supposed to apply to both ranged and melee damage, but it only applies to ranged. I could only find the havoc template version of the modifier, but it’s most likely using the same code. In addition at least while testing offline the thresholds didn’t seem to be working as expected.

local function _rotten_armor_stat_reduction(unit, index)
local buff_extension = ScriptUnit.extension(unit, “buff_system”)
local stat_buffs = buff_extension:stat_buffs()
local value = rotten_armor_data.reduction_threshold[index]

stat_buffs.ranged_damage_taken_multiplier = value
stat_buffs.ranged_damage_taken_multiplier = value

return rotten_armor_data.damage_thresholds[index]

end

Steps to Reproduce (Required):

  1. Play the rotten armor event and observe melee damage

Upload Supporting Evidence (Optional):

What? I thought that only weakening ranged direct damage was part of the game design, but it’s actually a bug?
The 25%, 50%, and 75% damage thresholds—I think these are related to the yellow-green particle effects on enemies. The lower an enemy’s health, the stronger the yellow-green particle effect… Did I misunderstand the difficulty?
The current skill effects are as follows:
When an enemy’s health is above 75%, they gain 75% resistance to ranged direct damage.
When an enemy’s health is below 75%, they gain 50% resistance to ranged direct damage