1) The tooltip of the effect always says that the reduction of damage they take is 10%, instead of the value shown in the talent tooltip and used for the functionality of the effect (in the callbackOnHit). This happens because the talent's code to apply the effect and the effect's code to reduce damage taken call the parameter "resist", but the effect's tooltip expects a parameter called "power", and so it uses the default value, power = 10.
2) The formula used in the callbackOnHit is
Code: Select all
cb.value = cb.value - (cb.value * (1 - eff.resist/100))
Code: Select all
cb.value = cb.value * eff.resist/100
To fix the effect to match the tooltip, the formula could be changed to
Code: Select all
cb.value = cb.value * (1 - eff.resist/100)