[1.7.4] [Forbidden Cults] 2 Split damage reduction bugs

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
ScienceBall
Higher
Posts: 69
Joined: Thu Jun 10, 2021 12:58 pm

[1.7.4] [Forbidden Cults] 2 Split damage reduction bugs

#1 Post by ScienceBall »

The talent Split applies an effect Split to the target who is split. This effect reduces both the damage they deal and the damage they take. Here are 2 bugs with the reduction of damage that the target takes:

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))
which simplifies to

Code: Select all

cb.value = cb.value * eff.resist/100
So despite the talent's tooltip saying "All damage taken will be reduced by 76%, 70%, 66%, 63%, 60%", it actually works as "All damage taken will be reduced to 76%, etc". (i.e. the target would take 76% of incoming damage, not 24% as you would expect from the tooltip.)
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)

nsrr
Sher'Tul
Posts: 1126
Joined: Mon Sep 21, 2015 8:45 pm
Location: Middle of Nowhere

Re: [1.7.4] [Forbidden Cults] 2 Split damage reduction bugs

#2 Post by nsrr »

Fix MR submitted.

Post Reply