diff --git a/src/plugin/boss/towerBossProjectile.ts b/src/plugin/boss/towerBossProjectile.ts index 9bf89ab..9961648 100644 --- a/src/plugin/boss/towerBossProjectile.ts +++ b/src/plugin/boss/towerBossProjectile.ts @@ -806,8 +806,12 @@ export class ThunderBallProjectile extends Projectile { const hor = ThunderBallProjectile.horizontal!.canvas; const ver = ThunderBallProjectile.vertical!.canvas; ctx.save(); - ctx.globalAlpha = 1; - if (w > 0 && h > 0) { + if (this.time > 1000 && this.time < 3000) { + ctx.globalAlpha = (3000 - this.time) / 2000; + } else { + ctx.globalAlpha = 1; + } + if (w > 0 && h > 0 && this.time < 3000) { switch (this.direction) { case ProjectileDirection.BottomToTop: case ProjectileDirection.TopToBottom: { @@ -821,6 +825,7 @@ export class ThunderBallProjectile extends Projectile { } } } + ctx.globalAlpha = 1; ctx.fillStyle = '#fff'; ctx.shadowBlur = 8; ctx.shadowColor = '#62c8f4';