Ejemplo n.º 1
0
        public override bool PreKill(int timeLeft)
        {
            if (_currentState.Equals(FrogBombState.Standing))
            {
                projectile.frame = 1;
            }

            Main.PlaySound(SoundID.DD2_ExplosiveTrapExplode, projectile.position);

            Projectile.NewProjectile(projectile.Center,
                                     Vector2.Zero,
                                     ModContent.GetModProjectile(ModContent.ProjectileType <FrogBombDie>()).projectile.type,
                                     projectile.damage,
                                     projectile.knockBack,
                                     projectile.owner,
                                     1);

            return(true);
        }