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();
    }
}

@@ -356,50 +356,260 @@
 %09%7B%0A%09
-    player.launchProjectile(Fireball.class
+%09int size = parameters.getInt(%22size%22, defaultSize);%0A%09%09boolean useFire = parameters.getBoolean(%22fire%22, true);%0A%09    Fireball fireball = (Fireball)player.launchProjectile(Fireball.class);%0A%09    fireball.setIsIncendiary(useFire);%0A%09    fireball.setYield(size
 );%0A%09

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