I've got a boss that relies heavily on a mechanic of constantly applying a 'burn' status effect that periodically deals damage equal to 5% of the afflicted target's current HP each turn, similar to a poison effect. Usually the burn goes away after five turns, having dealt 25% damage in total. However, I'm trying to give the boss an ability that removes the burn from a burned target, in exchange for dealing all remaining damage instantly. For example, using this 'burn infusion' ability on a target that has already taken 5% damage from the burn will deal the remaining 20% from the four remaining turns, and will remove the burn so that no more damage is applied.
So my two questions are:
So my two questions are:
- How would I go about creating an ability like this?
- How would I set the boss to only cast this ability on targets that are burned, and to not cast the ability at all if no-one is burned?

