i'm working on an ability that debuffs an enemy unit, and if said unit dies in the duration the caster gains a max hp increase. However when a unit dies all buffs are purged, so it can't pass the check and thus can't trigger the hp increase. Any idea how to work around this?