[
  {
    "id": "pyro_quell_flames_1",
    "type": "SPELL",
    "name": "[Ψ]Quell Heat 1",
    "description": "The second part of Quell Fire that has a higher intensity in the center.  If you have it, you debugged it in.",
    "valid_targets": [ "ground" ],
    "spell_class": "PYROKINETIC",
    "flags": [ "CONCENTRATE", "SILENT", "NO_HANDS", "NO_LEGS", "IGNORE_WALLS", "NO_EXPLOSION_SFX" ],
    "effect": "attack",
    "shape": "blast",
    "min_range": { "math": [ "( (u_spell_level('pyrokinetic_quell_flames') * 0.8) + 5) * (scaling_factor(u_val('intelligence') ) )" ] },
    "max_range": 70,
    "min_aoe": { "math": [ "( (u_spell_level('pyrokinetic_quell_flames') * 0.25) + 0) * (scaling_factor(u_val('intelligence') ) )" ] },
    "max_aoe": 50,
    "field_id": "fd_extinguisher",
    "min_field_intensity": 2,
    "max_field_intensity": 3,
    "field_chance": 1
  },
  {
    "id": "pyro_quell_flames_2",
    "type": "SPELL",
    "name": "[Ψ]Quell Heat 2",
    "description": "The part of Quell Fire that removes heat.  If you have it, you debugged it in.",
    "valid_targets": [ "ground" ],
    "spell_class": "PYROKINETIC",
    "flags": [ "CONCENTRATE", "SILENT", "NO_HANDS", "NO_LEGS", "IGNORE_WALLS", "NO_EXPLOSION_SFX" ],
    "effect": "remove_field",
    "effect_str": "fd_hot_air3",
    "shape": "blast",
    "max_level": { "math": [ "int_to_level(1)" ] },
    "min_aoe": 0
  },
  {
    "id": "pyro_quell_flames_3",
    "type": "SPELL",
    "name": "[Ψ]Quell Heat 3",
    "description": "The part of Quell Fire that removes heat.  If you have it, you debugged it in.",
    "valid_targets": [ "ground" ],
    "spell_class": "PYROKINETIC",
    "flags": [ "CONCENTRATE", "SILENT", "NO_HANDS", "NO_LEGS", "IGNORE_WALLS", "NO_EXPLOSION_SFX" ],
    "effect": "remove_field",
    "effect_str": "fd_hot_air4",
    "shape": "blast",
    "max_level": { "math": [ "int_to_level(1)" ] },
    "min_aoe": 0
  },
  {
    "id": "pyrokin_call_flame_short_term",
    "type": "SPELL",
    "name": "[Ψ]Call Flame Short Spell",
    "description": "The spell that summons the flame for Call Flame.  It's a bug if you have it directly.",
    "message": "",
    "valid_targets": [ "self" ],
    "spell_class": "PYROKINETIC",
    "skill": "metaphysics",
    "flags": [ "CONCENTRATE", "SILENT", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX", "RANDOM_DURATION" ],
    "effect": "spawn_item",
    "effect_str": "pyrokinetic_fire_tool",
    "shape": "blast",
    "min_damage": 1,
    "max_damage": 1,
    "min_duration": { "math": [ "((u_spell_level('pyrokinetic_call_flames') * 1500) + 30000)" ] },
    "max_duration": { "math": [ "((u_spell_level('pyrokinetic_call_flames') * 3000) + 60000)" ] }
  },
  {
    "id": "pyrokin_call_flame_long_term",
    "type": "SPELL",
    "name": "[Ψ]Call Flame Long Spell",
    "description": "The spell that summons the flame for Call Flame but for longer.  It's a bug if you have it directly.",
    "message": "",
    "valid_targets": [ "self" ],
    "spell_class": "PYROKINETIC",
    "skill": "metaphysics",
    "flags": [ "CONCENTRATE", "SILENT", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX", "RANDOM_DURATION" ],
    "effect": "spawn_item",
    "effect_str": "pyrokinetic_fire_tool",
    "shape": "blast",
    "min_damage": 1,
    "max_damage": 1,
    "min_duration": { "math": [ "((u_spell_level('pyrokinetic_call_flames') * 6000) + 360000)" ] },
    "max_duration": { "math": [ "((u_spell_level('pyrokinetic_call_flames') * 6000) + 540000)" ] }
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_SPELL_PYROKIN_CALL_FLAME_SHORT",
    "effect": [
      { "u_remove_item_with": "pyrokinetic_fire_tool" },
      { "u_cast_spell": { "id": "pyrokin_call_flame_short_term" } },
      { "u_message": "Flames begin dancing in the air above your hand", "type": "neutral" },
      { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 0,1 )" ] }
    ]
  },
  {
    "type": "effect_on_condition",
    "id": "EOC_SPELL_PYROKIN_CALL_FLAME_LONG",
    "effect": [
      { "u_remove_item_with": "pyrokinetic_fire_tool" },
      { "u_cast_spell": { "id": "pyrokin_call_flame_long_term" } },
      { "u_message": "Flames begin dancing in the air above your hand", "type": "neutral" },
      { "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 2,5 )" ] }
    ]
  }
]
