<commit_before>﻿using System.Collections.Generic;
using HarryPotterUnity.Cards.Generic;
using JetBrains.Annotations;
using UnityEngine;

namespace HarryPotterUnity.Cards.Transfiguration.Spells
{
    [UsedImplicitly]
    public class Incarcifors : GenericSpell
    {
        public override List<GenericCard> GetValidTargets()
        {
            return Player.OppositePlayer.InPlay.GetCreaturesInPlay();
        }

        protected override void SpellAction(List<GenericCard> targets)
        {
            if (targets.Count != 1)
            {
                Debug.LogError("More or less than one input sent to Incarcifors");
            }

            var target = targets[0];

            target.Enable();
            Player.OppositePlayer.Discard.Add(target);
            Player.OppositePlayer.InPlay.Remove(target);
        }
    }
}<commit_msg>Error check in Incarcifors<commit_after>﻿using System.Collections.Generic;
using HarryPotterUnity.Cards.Generic;
using JetBrains.Annotations;
using UnityEngine;

namespace HarryPotterUnity.Cards.Transfiguration.Spells
{
    [UsedImplicitly]
    public class Incarcifors : GenericSpell
    {
        public override List<GenericCard> GetValidTargets()
        {
            return Player.OppositePlayer.InPlay.GetCreaturesInPlay();
        }

        protected override void SpellAction(List<GenericCard> targets)
        {
            if (targets.Count != 1)
            {
                Debug.LogError("More or less than one input sent to Incarcifors");
                return;
            }

            var target = targets[0];

            target.Enable();
            Player.OppositePlayer.Discard.Add(target);
            Player.OppositePlayer.InPlay.Remove(target);
        }
    }
}
{'fraction_non_alphanumeric': 0.08538681948424069, 'fraction_numerical': 0.002292263610315186, 'mean_word_length': 2.275797373358349, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2372728', 'n_tokens_mistral': 500, 'n_tokens_neox': 469, 'n_words': 92}