Home · skill · Mage_Conduit_Projectile

Fires 1 shard at your target dealing 25% Intellect.

Activates when you consume Spark above the gauge threshold.

Properties

status
Done
type
MageConduit
nature
Passive
steps
on=13props={"projectile":{"base":"MissileHoming","activationDelay":0.4,"appearDelay":0.3,"variant":1}}type=7id=Projectileon=2props={}effects=[{"effect":0,"scaling":[{"ratio":0.25,"atb":"Intellect"}],"affinity":"Spark","flags":0}]type=0

Referenced by

unit (1)

Raw data
{
  "status": "Done",
  "gfx": {
    "file": "UI/icons/atlas_class_Mage_96PX.png",
    "size": 96,
    "x": 6,
    "y": 1
  },
  "id": "Mage_Conduit_Projectile",
  "type": "MageConduit",
  "nature": "Passive",
  "texts": {
    "name": "Conduit: Shard",
    "desc": "Fires ::var1:: shard at your target dealing ::dmg::.\n\nActivates when you consume [Spark] above the gauge threshold."
  },
  "anim": {},
  "steps": [
    {
      "on": 13,
      "props": {
        "projectile": {
          "base": "MissileHoming",
          "activationDelay": 0.4,
          "appearDelay": 0.3,
          "variant": 1
        }
      },
      "type": 7,
      "id": "Projectile"
    },
    {
      "on": 2,
      "props": {},
      "effects": [
        {
          "effect": 0,
          "scaling": [
            {
              "ratio": 0.25,
              "atb": "Intellect"
            }
          ],
          "affinity": "Spark",
          "flags": 0
        }
      ],
      "type": 0
    }
  ],
  "flags": [],
  "mastery": [],
  "props": {
    "enableCond": {
      "flags": 2
    }
  },
  "vars": {
    "var1": 1
  },
  "script": "function onStartConduit() {\n\tvar instanceIndex = getSkillInstanceIndex();\n\tif(instanceIndex < 0) return;\n\n    var fanRadius = 2.5;\n    var fanAmplitude = 240;\n    var shotDelay = 0.1;\n\n\tvar target = getActiveSkill()?.aimTarget;\n\tif (target == null) target = owner.getTarget();\n\n    var count = getSkillInstanceCount();\n    if (target != null) {\n        var projStep = getStepById(Steps.Projectile);\n        var startPos = projStep.getProjectileStart();\n\n        var interProgress = 1 / (count+1);\n\t\tvar pos = startPos;\n\t\tif (count > 1) {\n\t\t\tfor (i in 0...instanceIndex + 1) {\n\t\t\t\tpos = p3DAdd(startPos, getFanFacingPos((i+1) * interProgress, fanAmplitude, fanRadius, p2DTo3D( p2DSub(target.pos2D, owner.pos2D)) ) );\n\t\t\t}\n\t\t}\n\t\twait(instanceIndex * shotDelay, function() {\n\t\t\tprojStep.generateProjectile(target, pos);\n\t\t});\n    }\n}",
  "_xrefs": [
    {
      "from_sheet": "unit",
      "from_id": "Mage",
      "via_field": "skills"
    }
  ]
}