feedback4: 引星棘刺 S1 度算浪波 (an AUTO skill thrown at an ally) fires as soon as its SP is full, with no enemy around (GitHub #124)
This commit is contained in:
1 parent
2519a23a55
commit
723755e3a5
2 files changed
+21
No files matched your search
@@ -1985,6 +1985,10 @@ const KITS = {
|
||||
skills: lazySkills({
|
||||
skchr_thorn2_1: () => ({
|
||||
kind: instantKind(chess, def),
|
||||
// an AUTO skill (skill_table 自动触发) that throws at an ally: it fires as soon as its SP is full, with or
|
||||
// without an enemy — the basic DEFAULT rule waited for an attack, so with no enemy around it sat at 7/7
|
||||
// (GitHub #124 「引星棘刺一技能不会在满技力时自动释放」)
|
||||
trigger: { rule: 'SP_FULL' },
|
||||
onStart({ battle, unit }) {
|
||||
const t = battle.alliesInGrid(unit).filter((a) => a.hp > 0).sort((a, b) => a.hpRatio - b.hpRatio || b.blocking.length - a.blocking.length || dist(a, unit) - dist(b, unit) || a.id - b.id)[0];
|
||||
if (!t) return;
|
||||
|
||||
Reference in new issue
Block a user