fix: 重置松果重新部署后的S2攻击成长
This commit is contained in:
1 parent
1db8e51023
commit
8ebdcf5d17
5 files changed
+120
-3
No files matched your search
@@ -15,8 +15,9 @@ export default {
|
||||
const kit = {
|
||||
skill: {
|
||||
kind: 'duration',
|
||||
onStart({ battle, unit, skill }) {
|
||||
const atk = steps[Math.min(steps.length - 1, Math.max(0, skill.activations - 1))];
|
||||
onStart({ battle, unit }) {
|
||||
const n = (unit.mem.pinecnS2Uses = num(unit.mem.pinecnS2Uses) + 1);
|
||||
const atk = steps[Math.min(steps.length - 1, n - 1)];
|
||||
battle.addBuff(unit, { key: 'skill:pinecn_atk', mods: { atkPct: atk } });
|
||||
},
|
||||
onEnd({ battle, unit }) { battle.removeBuff(unit, 'skill:pinecn_atk'); },
|
||||
@@ -33,7 +34,11 @@ export default {
|
||||
}),
|
||||
talents: [{ install(battle, unit) {
|
||||
battle.on('deploy', (ctx) => {
|
||||
if (ctx.unit === unit) battle.addBuff(unit, { key: 'talent:pinecn_power', duration: num(t0.duration, 60), mods: { spRecoveryFlat: num(t0.sp_recovery_per_sec) } });
|
||||
if (ctx.unit !== unit) return;
|
||||
// PRTS 松果 S2 备注 (https://prts.wiki/w/松果): the ramp counts uses since this deployment.
|
||||
// Keep Skill.activations cumulative: the engine uses it as an activation sequence.
|
||||
unit.mem.pinecnS2Uses = 0;
|
||||
battle.addBuff(unit, { key: 'talent:pinecn_power', duration: num(t0.duration, 60), mods: { spRecoveryFlat: num(t0.sp_recovery_per_sec) } });
|
||||
}, { owner: unit });
|
||||
} }],
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user