Beispiel #1
0
        private void charmAll(PlayerController user)
        {
            AIActor randomEnemy = user.CurrentRoom.GetRandomActiveEnemy();

            if (randomEnemy != null && !randomEnemy.healthHaver.IsBoss)
            {
                randomEnemy.ForceFall();
            }
            if (Owner.HasPickupID(159))
            {
                AIActor randomEnemy2 = user.CurrentRoom.GetRandomActiveEnemy();
                if (randomEnemy2 != null && !randomEnemy2.healthHaver.IsBoss)
                {
                    randomEnemy2.ForceFall();
                }
            }
        }