Vicious Duellist: Each time this operative fights in combat, in the Roll Attack Dice step of that combat, for each attack dice your opponent discards, the enemy operative in that combat suffers 1 mortal wound.
This would be for KT Fight tab. The "Roll Attack Dice" step is just before "Resolve Successful Hits", so this would happen before any strike/parry happens.
For this, I would have to ...
Add ViciousDuellistAbility and record it in Model.abilities. UI-wise, I could simply add it to Ability.ts's mutuallyExclusiveFightAbilities and edit the relevant Note.
Add fails field to FinalDiceProb and add fails arg to its constructor, then supply a fails value in calcFinalDiceProb.
Add fails field to FighterState, etc.
In resolveFight, before handleDuelist, that is where I would do something like if(guy.profile.has(Ability.ViciousDuellist)){ guy.applyDmg(otherGuy.fails); } for both guys.
https://wahapedia.ru/kill-team2/kill-teams/farstalker-kinband/#Kroot-Cut-skin
Kroot Cut-skin's "Vicious Duellist":
This would be for KT Fight tab. The "Roll Attack Dice" step is just before "Resolve Successful Hits", so this would happen before any strike/parry happens.
For this, I would have to ...
ViciousDuellist
Ability
and record it inModel.abilities
. UI-wise, I could simply add it to Ability.ts'smutuallyExclusiveFightAbilities
and edit the relevantNote
.fails
field toFinalDiceProb
and addfails
arg to its constructor, then supply afails
value incalcFinalDiceProb
.fails
field toFighterState
, etc.resolveFight
, beforehandleDuelist
, that is where I would do something likeif(guy.profile.has(Ability.ViciousDuellist)){ guy.applyDmg(otherGuy.fails); }
for both guys.