//////////////// private static void RunFinalDashIf(SpiritWalkingPlayer myplayer) { if (myplayer.FinalDashElapsed <= 0) { return; } int chargeTime = 90; SpiritWalkFxLogic.EmitSpiritTrailParticles( position: myplayer.player.MountedCenter, direction: Vector2.One.RotatedByRandom(Math.PI) * 5f //particles: 1 //wide: true //offsetY: 0 ); if (myplayer.FinalDashElapsed >= chargeTime) { myplayer.FinalDashElapsed = 0; SpiritWalkLogic.AttemptFinalDash(myplayer, true); SpiritWalkLogic.DeactivateIf(myplayer.player, true); } else { myplayer.FinalDashElapsed++; } }