Skip to content

Commit 9663a1c

Browse files
authored
fix: long effects proc (#553)
1 parent e6bc7bb commit 9663a1c

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

server/arena/magics/aura.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ export abstract class Aura extends CommonMagic {
1515
action: this.name,
1616
initiator,
1717
duration: initiator.stats.val('spellLength'),
18+
proc: initiator.proc,
1819
onCast: (game, affect) => {
20+
// @ts-expect-error
21+
initiator.proc = affect.proc;
1922
// @ts-expect-error
2023
this.effectInstanse.duration = affect.duration;
2124
this.effectInstanse.cast(initiator, target, game);

server/arena/magics/magicWall.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ class MagicWall extends LongMagic {
3939
duration: this.duration,
4040
proc: initiator.proc,
4141
onBeforeDamageRecieve(ctx, action) {
42+
initiator.proc = this.proc;
4243
magicWallEffect.onBeforeDamageRecieve(ctx, action);
4344
},
4445
onBeforeDamageDeal(ctx, action) {
46+
initiator.proc = this.proc;
4547
magicWall.onBeforeDamageDeal(ctx, action);
4648
},
4749
});

server/arena/passiveSkills/huntersMark.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class HuntersMark extends PassiveSkillConstructor {
5656
initiator,
5757
value: this.getEffect({ initiator, target, game }),
5858
onBeforeDamageRecieve(ctx, action, affect) {
59+
initiator.proc = this.proc;
5960
markedShot.onBeforeDamageRecieve(ctx, action, affect);
6061
},
6162
});

0 commit comments

Comments
 (0)