Home · skill · Mage_SparkMaster

Using a Weapon Skill or your Final Combo Attack consumes Spark.

Consuming Spark activates your Conduits if your gauge is above the threshold.

You can select any combination of Conduits.

Properties

status
Done
type
ClassPassive
nature
Passive

Referenced by

unit (1)

Raw data
{
  "status": "Done",
  "gfx": {
    "file": "UI/icons/atlas_class_Mage_96PX.png",
    "size": 96,
    "x": 4,
    "y": 0
  },
  "id": "Mage_SparkMaster",
  "type": "ClassPassive",
  "nature": "Passive",
  "texts": {
    "name": "Sparkmaster",
    "desc": "Using a [WeaponSkill] or your [ComboAttack] consumes [Spark].\n\nConsuming [Spark] activates your [Conduit]s if your gauge is above the threshold.\n\nYou can select any combination of [Conduit]s."
  },
  "anim": {},
  "steps": [],
  "flags": [],
  "mastery": [],
  "props": {},
  "vars": {},
  "script": "function onPreSkillProc(ctx) {\n\tvar s = ctx.skill;\n\tif(s.isWeaponSkill() || s.isFinalAttack() ) {\n\t\tvar hasChain = false;\n\t\tif (s.isWeaponSkill())\n\t\t\thasChain = owner.tryConsumeStatus(Skill.Mage_Talent_Chaincast_Status) > 0;\n\t\tvar isFree = hasChain;\n\t\tif (!isFree)\n\t\t\tisFree = consumeStatus(owner, Skill.Mage_Foresight_Status) > 0;\n\t\t// if (ownerHero?.mage != null)\n\t\t// \townerHero.mage.triggerAllConduits();\n\t\tif (hasChain && ownerHero?.mage != null) {\n\t\t\townerHero?.mage.propagateMageChainCast(ctx);\n\t\t}\n\t\tif (!isFree) {\n\t\t\tvar cost = s.getSparkCost();\n\t\t\taddResource(Attribute.Spark, -cost);\n\t\t\tsetCustom(ctx, cost);\n\t\t}\n\t}\n}",
  "_xrefs": [
    {
      "from_sheet": "unit",
      "from_id": "Mage",
      "via_field": "skills"
    }
  ]
}