Exemplo n.º 1
0
        public void TpPlayerToEnemy()
        {
            Player     pl     = Main.player[projectile.owner];
            DarkPlayer player = pl.GetModPlayer <DarkPlayer>();

            for (int k = 0; k < 200; k++)
            {
                NPC npc = Main.npc[k];
                if (npc.CanBeChasedBy(this, false))
                {
                    pl.position          = npc.position + (player.offset * -npc.spriteDirection);
                    player.ApearedBehind = true;
                    player.ResetApearTimer();
                }
            }
        }