package com.elmakers.mine.bukkit.plugins.magic.spells;

import org.bukkit.entity.Fireball;

import com.elmakers.mine.bukkit.plugins.magic.Spell;
import com.elmakers.mine.bukkit.utilities.borrowed.ConfigurationNode;

public class FireballSpell extends Spell 
{
    int defaultSize = 1;
    
	@Override
	public boolean onCast(ConfigurationNode parameters) 
	{
	    player.launchProjectile(Fireball.class);
	    return true;
	}

    @Override
    public void onLoad(ConfigurationNode node)
    {
        disableTargeting();
    }
}

package com.elmakers.mine.bukkit.plugins.magic.spells;

import org.bukkit.entity.Fireball;

import com.elmakers.mine.bukkit.plugins.magic.Spell;
import com.elmakers.mine.bukkit.utilities.borrowed.ConfigurationNode;

public class FireballSpell extends Spell 
{
    int defaultSize = 1;
    
	@Override
	public boolean onCast(ConfigurationNode parameters) 
	{
		int size = parameters.getInt("size", defaultSize);
		boolean useFire = parameters.getBoolean("fire", true);
	    Fireball fireball = (Fireball)player.launchProjectile(Fireball.class);
	    fireball.setIsIncendiary(useFire);
	    fireball.setYield(size);
	    return true;
	}

    @Override
    public void onLoad(ConfigurationNode node)
    {
        disableTargeting();
    }
}

Fix ICBM spell (e.g. fix Fireball spell parameters)