<commit_before>package com.elmakers.mine.bukkit.spell.builtin;

import com.elmakers.mine.bukkit.action.builtin.CoverAction;
import com.elmakers.mine.bukkit.action.builtin.FreezeAction;
import com.elmakers.mine.bukkit.api.spell.SpellResult;
import com.elmakers.mine.bukkit.action.ActionHandler;
import com.elmakers.mine.bukkit.spell.BlockSpell;
import com.elmakers.mine.bukkit.utility.Target;
import org.bukkit.block.Block;
import org.bukkit.configuration.ConfigurationSection;

@Deprecated
public class FrostSpell extends BlockSpell
{
	@Override
	public SpellResult onCast(ConfigurationSection parameters) 
	{
        Target target = getTarget();
        if (target == null || !target.isValid())
        {
            return SpellResult.NO_TARGET;
        }

        Block targetBlock = target.getBlock();
        if (!hasBuildPermission(targetBlock))
        {
            return SpellResult.INSUFFICIENT_PERMISSION;
        }

        CoverAction cover = new CoverAction();
        cover.addAction(new FreezeAction());
        ActionHandler handler = new ActionHandler();
        handler.loadAction(cover);
        registerForUndo();
        return handler.perform(getCurrentCast(), parameters);
	}
}
<commit_msg>Add damage and slow back to deprecated FrostSpell<commit_after>package com.elmakers.mine.bukkit.spell.builtin;

import com.elmakers.mine.bukkit.action.builtin.CoverAction;
import com.elmakers.mine.bukkit.action.builtin.DamageAction;
import com.elmakers.mine.bukkit.action.builtin.FreezeAction;
import com.elmakers.mine.bukkit.action.builtin.PotionEffectAction;
import com.elmakers.mine.bukkit.api.spell.SpellResult;
import com.elmakers.mine.bukkit.action.ActionHandler;
import com.elmakers.mine.bukkit.spell.BlockSpell;
import com.elmakers.mine.bukkit.utility.Target;
import org.bukkit.block.Block;
import org.bukkit.configuration.ConfigurationSection;

@Deprecated
public class FrostSpell extends BlockSpell
{
	@Override
	public SpellResult onCast(ConfigurationSection parameters) 
	{
        Target target = getTarget();
        if (target == null || !target.isValid())
        {
            return SpellResult.NO_TARGET;
        }

        Block targetBlock = target.getBlock();
        if (!hasBuildPermission(targetBlock))
        {
            return SpellResult.INSUFFICIENT_PERMISSION;
        }

        CoverAction cover = new CoverAction();
        cover.addAction(new FreezeAction());
        cover.addAction(new DamageAction());
        cover.addAction(new PotionEffectAction());
        ActionHandler handler = new ActionHandler();
        handler.loadAction(cover);
        registerForUndo();
        return handler.perform(getCurrentCast(), parameters);
	}
}

{'fraction_non_alphanumeric': 0.10185873605947955, 'fraction_numerical': 0.0, 'mean_word_length': 3.592150170648464, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4940815', 'n_tokens_mistral': 787, 'n_tokens_neox': 778, 'n_words': 135}