private void UseStaff()
    {
        int flipOrNoFlip = 0;

        if (DataAcrossScenes.EnemyChosenStaff == (int)Chosen_Staff.moon)
        {
            foreach (Transform child in GameObject.Find("Spelplan").transform)
            {
                if (child.GetComponent <Owner>().owned == (int)Tile_State.player1 && child.GetComponent <Owner>().specialState == 0)
                {
                    flipOrNoFlip++;
                }
                if (child.GetComponent <Owner>().owned == (int)Tile_State.player2 && child.GetComponent <Owner>().specialState == 0)
                {
                    flipOrNoFlip--;
                }
            }
        }

        if (!gameControl.staffUsed)
        {
            if (DataAcrossScenes.EnemyChosenStaff == (int)Chosen_Staff.pumpkin && gameControl.enemyStaffCooldown == 0 && gameControl.playerStaffCooldown > 0)
            {
                pumpkinStaff.PumpkinStaffActiveAbility();
                dialogueTrigger.EnemyUsingStaff();
            }
            else if (DataAcrossScenes.EnemyChosenStaff == (int)Chosen_Staff.skeleton && gameControl.enemyStaffCooldown == 0)
            {
                skeletonStaff.SkeletonStaffActiveAbility();
                dialogueTrigger.EnemyUsingStaff();
            }
            else if (DataAcrossScenes.EnemyChosenStaff == (int)Chosen_Staff.moon && gameControl.enemyStaffCooldown == 0 && flipOrNoFlip >= 0)
            {
                moonStaff.MoonStaffActiveAbility();
                dialogueTrigger.EnemyUsingStaff();
            }
            else if (DataAcrossScenes.EnemyChosenStaff == (int)Chosen_Staff.night && gameControl.enemyStaffCooldown == 0)
            {
                darkNightStaff.DarkNightStaffActiveAbility();
                dialogueTrigger.EnemyUsingStaff();
            }
            else if (DataAcrossScenes.EnemyChosenStaff == (int)Chosen_Staff.hell && gameControl.enemyStaffCooldown == 0)
            {
                hellstaff.HellStaffActiveAbility();
                dialogueTrigger.EnemyUsingStaff();
            }
        }

        useStaffDone = true;
    }