[
  {
    "//": "Any spell that are casted indirectly are taken here.",
    "id": "t1_blood_transfusion_spell",
    "type": "SPELL",
    "name": { "str": "Tranfusion Spell" },
    "message": "You feel refreshed as you cast!",
    "description": "It will cast Transfusion Heal and Transfusion Heal Pain.",
    "sprite": "fd_blood",
    "max_level": 20,
    "flags": [ "SILENT" ],
    "valid_targets": [ "self" ],
    "effect": "target_attack",
    "extra_effects": [
      { "id": "t1_blood_transfusion_spell_heal", "hit_self": true },
      { "id": "t1_blood_transfusion_spell_heal_pain" }
    ]
  },
  {
    "id": "t1_blood_transfusion_spell_heal",
    "type": "SPELL",
    "name": { "str": "Tranfusion Heal" },
    "description": "Heals the caster for 1 to 20 HP.",
    "sprite": "fd_blood",
    "max_level": 20,
    "flags": [ "SILENT" ],
    "valid_targets": [ "self" ],
    "effect": "target_attack",
    "min_damage": -1,
    "damage_increment": -1,
    "max_damage": -20,
    "damage_type": "none"
  },
  {
    "id": "t1_blood_transfusion_spell_heal_pain",
    "type": "SPELL",
    "name": { "str": "Tranfusion Heal Pain" },
    "description": "Heals the caster for 2 to 40 pain.",
    "sprite": "fd_blood",
    "max_level": 20,
    "flags": [ "SILENT", "PAIN_NORESIST" ],
    "valid_targets": [ "self" ],
    "effect": "recover_energy",
    "effect_str": "PAIN",
    "min_damage": 2,
    "damage_increment": 2,
    "max_damage": 40,
    "damage_type": "none"
  },
  {
    "id": "t2_blood_bloodsynthesis_spell_heal_pain",
    "type": "SPELL",
    "name": { "str": "Blood Synthesis Heal Pain" },
    "description": "Heals the ally for 30 to 60 pain.",
    "sprite": "fd_blood",
    "max_level": 30,
    "flags": [ "SILENT", "PAIN_NORESIST" ],
    "valid_targets": [ "ally" ],
    "effect": "recover_energy",
    "effect_str": "PAIN",
    "min_damage": 30,
    "damage_increment": 1,
    "max_damage": 60,
    "damage_type": "none"
  },
  {
    "id": "t3_blood_crimsonhaze_blind",
    "type": "SPELL",
    "name": { "str": "Crimson Haze Blind" },
    "description": "Blind foes within a 4 tile radius.",
    "sprite": "fd_blood",
    "max_level": 30,
    "flags": [ "SILENT" ],
    "valid_targets": [ "hostile", "ally", "ground" ],
    "effect": "projectile_attack",
    "effect_str": "blind",
    "min_aoe": 2,
    "energy_increment": 0.1,
    "max_aoe": 5,
    "min_duration": 2400,
    "duration_increment": 120,
    "max_duration": 6000,
    "damage_type": "bio"
  },
  {
    "id": "t5_blood_outrage_bash",
    "type": "SPELL",
    "name": { "str": "Outrage Bash" },
    "description": "Deals 75 bash damage.",
    "sound_type": "combat",
    "sound_description": "splash!",
    "sound_variant": "big_bash",
    "sprite": "animation_hit",
    "message": "A thick tentacle strikes!",
    "flags": [ "RANDOM_TARGET" ],
    "valid_targets": [ "hostile" ],
    "effect": "target_attack",
    "base_energy_cost": 1,
    "energy_source": "HP",
    "min_damage": 75,
    "max_damage": 75,
    "min_range": 12,
    "max_range": 12,
    "damage_type": "bash"
  },
  {
    "id": "t5_blood_outrage_cut",
    "type": "SPELL",
    "name": { "str": "Outrage Cut" },
    "description": "Deals 75 cut damage.",
    "sound_description": "splash!",
    "sound_type": "combat",
    "sound_id": "melee_hit_flesh",
    "sound_variant": "big_cutting",
    "sprite": "animation_hit",
    "message": "A tentacle strand slashes!",
    "flags": [ "RANDOM_TARGET" ],
    "valid_targets": [ "hostile" ],
    "effect": "target_attack",
    "base_energy_cost": 1,
    "energy_source": "HP",
    "min_damage": 75,
    "max_damage": 75,
    "min_range": 12,
    "max_range": 12,
    "damage_type": "cut"
  },
  {
    "id": "t5_blood_outrage_stab",
    "type": "SPELL",
    "name": { "str": "Outrage Stab" },
    "description": "Deals 50 stab damage.",
    "sound_description": "splash!",
    "sound_type": "combat",
    "sound_id": "melee_hit_flesh",
    "sound_variant": "big_stabbing",
    "sprite": "animation_hit",
    "message": "A long tendril impales!",
    "flags": [ "RANDOM_TARGET" ],
    "valid_targets": [ "hostile" ],
    "effect": "target_attack",
    "base_energy_cost": 1,
    "energy_source": "HP",
    "min_damage": 75,
    "max_damage": 75,
    "min_range": 12,
    "max_range": 12,
    "damage_type": "stab"
  },
  {
    "id": "t5_blood_outrage_drain",
    "type": "SPELL",
    "name": { "str": "Outrage Drain" },
    "message": "You steal their life force!",
    "description": "It will cast Drain Damage and Drain Heal.",
    "flags": [ "SILENT" ],
    "valid_targets": [ "ally", "hostile", "ground" ],
    "effect": "target_attack",
    "extra_effects": [
      { "id": "t5_blood_outrage_drain_dmg" },
      { "id": "t5_blood_outrage_drain_heal", "hit_self": true },
      { "id": "t5_blood_outrage_drain_heal_pain", "hit_self": true }
    ],
    "min_range": 12,
    "max_range": 12
  },
  {
    "id": "t5_blood_outrage_drain_dmg",
    "type": "SPELL",
    "name": { "str": "Drain Damage" },
    "description": "Deals 25 non-elemental damage to the target.",
    "sound_description": "splash!",
    "sound_type": "combat",
    "sound_id": "misc",
    "sound_variant": "inhale",
    "sprite": "fd_blood",
    "flags": [ "RANDOM_TARGET" ],
    "valid_targets": [ "hostile" ],
    "effect": "target_attack",
    "min_damage": 25,
    "max_damage": 25,
    "min_range": 12,
    "max_range": 12,
    "damage_type": "none"
  },
  {
    "id": "t5_blood_outrage_drain_heal",
    "type": "SPELL",
    "name": { "str": "Drain Heal" },
    "description": "Heals the caster for 12 hp.",
    "sprite": "fd_blood",
    "flags": [ "SILENT" ],
    "valid_targets": [ "self" ],
    "effect": "target_attack",
    "min_damage": -12,
    "max_damage": -12,
    "damage_type": "none"
  },
  {
    "id": "t5_blood_outrage_drain_heal_pain",
    "type": "SPELL",
    "name": { "str": "Drain Heal Pain" },
    "description": "Heals the caster for 25 pain.",
    "sprite": "fd_blood",
    "flags": [ "SILENT", "PAIN_NORESIST" ],
    "valid_targets": [ "self" ],
    "effect": "recover_energy",
    "effect_str": "PAIN",
    "min_damage": 25,
    "max_damage": 25,
    "damage_type": "none"
  },
  {
    "id": "t4_mana_darkburst_push",
    "type": "SPELL",
    "name": { "str": "Dark Burst Push" },
    "description": "Push monsters within a 4 tile radius.",
    "effect": "area_push",
    "effect_filter": [ "hostile" ],
    "flags": [ "SILENT" ],
    "valid_targets": [ "self", "ally", "hostile", "ground" ],
    "min_aoe": 3,
    "max_aoe": 3
  },
  {
    "type": "SPELL",
    "id": "t5_mana_megamagic_exhaust_maybe",
    "name": { "str": "Megamagic Exhaust?" },
    "description": "1/4 chance to do Megamagic Exhaust.",
    "valid_targets": [ "none" ],
    "message": "",
    "effect": "target_attack",
    "flags": [ "WONDER", "SILENT" ],
    "min_damage": 1,
    "max_damage": 1,
    "extra_effects": [
      { "id": "v_spell_null" },
      { "id": "v_spell_null" },
      { "id": "v_spell_null" },
      { "id": "t5_mana_megamagic_exhaust_yes" }
    ]
  },
  {
    "type": "SPELL",
    "id": "t5_mana_megamagic_exhaust_yes",
    "name": { "str": "Megamagic Exhaust!" },
    "description": "Does the Megamagic Exhaust.",
    "valid_targets": [ "none" ],
    "message": "",
    "effect": "target_attack",
    "flags": [ "WONDER", "SILENT" ],
    "min_damage": 1,
    "max_damage": 1,
    "extra_effects": [ { "id": "t5_mana_megamagic_exhaust" } ]
  },
  {
    "id": "t5_mana_megamagic_exhaust",
    "type": "SPELL",
    "name": { "str": "Megamagic Exhaust" },
    "description": "Weakens the player.",
    "flags": [ "SILENT" ],
    "valid_targets": [ "self" ],
    "effect": "target_attack",
    "effect_str": "v_spell_megamagic_exhaust",
    "extra_effects": [ { "id": "t5_mana_megamagic_exhaust_stam" } ],
    "min_duration": 1200,
    "max_duration": 1200,
    "damage_type": "bio"
  },
  {
    "id": "t5_mana_megamagic_exhaust_stam",
    "type": "SPELL",
    "name": { "str": "Exhaustion" },
    "description": "Depletes the stamina.",
    "valid_targets": [ "self" ],
    "flags": [ "SILENT" ],
    "min_damage": -10000,
    "max_damage": -10000,
    "effect": "recover_energy",
    "effect_str": "STAMINA"
  },
  {
    "id": "t6_mana_darkpillar_bash",
    "type": "SPELL",
    "name": { "str": "Dark Pillar Bash" },
    "description": "Aims to make a crater under the target. If not, then don't.",
    "valid_targets": [ "hostile" ],
    "flags": [ "SILENT" ],
    "min_damage": 10000,
    "max_damage": 10000,
    "effect": "bash"
  }
]