A 咒愈师's trait heals on every damage she deals; 收割者 / 武者 heal on their skill hits too (#115)

The official trait buffs fire on output damage, not only on a normal attack (buff_template_data vendla_tr / reed2_tr / titi_tr ON_AFTER_OUTPUT_DAMAGE; etlchi_trait etc. ON_OUTPUT_DAMAGE, attackType BUFF filtered for 隐德来希). Skill damage now heals: 缇缇's 凝固的时光 ticks, 焰影苇草 S2 fireballs and 刺玫 S2's counter heal the one ally the skill names (DamageInfo.traitAlly); 隐德来希's S2 blood sickles heal her, capped at her block count per instant. PRTS 分支特性信息 §咒愈师: the heal depends only on the damage value. Contributed by @shanzhaikabi.
This commit is contained in:
shanzhaikabi authored and GitHub committed 2026-10-05 14:20:59 +08:00
1 parent bbff3514a8
commit 763e224b8d
7 files changed
+146 -18

No files matched your search

+4
View File
@@ -92,6 +92,10 @@ export function makeDamageInfo(d = {}) {
ignoreSelect: !!d.ignoreSelect,
sourceless: !!d.sourceless,
attackId: d.attackId ?? 0,
// 咒愈师 skills whose damage triggers their trait for ONE named ally ("并仅对该角色/干员触发…特性"): the instance
// carries that ally, and the trait hook (professions.js installIncantation) heals it instead of the lowest-HP ally
// in range. null = the ordinary target of the trait.
traitAlly: d.traitAlly ?? null,
};
}