Home · skill · WaterSpore_Skill1

Properties

status
Bug
type
Skill
nature
Spell
cooldown
15
duration
7.5
steps
on=0props={"rotation":{"limiter":320}}type=13duration=5on=0props={"castFlags":8}type=3duration=6on=0props={}type=11delay=0.56visuals={"playAnims":[{"anim":{"ref":"Cast","loop":true}}]}on=0props={}type=11visuals={"fxs":[{"set":"Hit_Water","props":{"offset":{"x":0,"y":0,"z":0,"height":0}},"scale":0.3,"attachName":"B_ROOT","space":0,"flags":9}]}duration=1.2delay=0.5on=0props={}id=GenerateProjectilesdelay=1props={"projectile":{"base":"Orbitter","fxSet":"Projectile_WaterBubble","orbit":{"radiusCurve":[0,0.00553189733241166,-0.240663547126972,-1.08970911670967,0.0788436226413465,0.360048594717381,0.401746902905042,1.1103073621269,-0.0931693951244853,2.99264962978901e-17,0.104554861458488,0.00249631573124431,0.800614150604516,0.00443404026850053,-0.152162727884793,0.488434050373675,-0.5,0],"radius":20},"speed":100,"activationDelay":1,"scale":1,"lifetime":6,"hitFilter":1}}on=8id=Projectiletype=7on=0props={}id=LaunchProjectilesdelay=3on=0visuals={"playAnims":[{"anim":{"ref":"CastProjectile"}}],"fxs":[{"set":"Water_Blast","props":{"offset":{"x":0,"y":0,"z":2,"height":0}},"scale":1},{"set":"Water_Aura","props":{},"attachName":"B_ROOT","flags":9}]}props={}type=11delay=2duration=0.3on=2props={}effects=[{"effect":0,"scaling":[{"ratio":0.75,"atb":"FoePower"}],"affinity":"Water","flags":0}]type=0on=1props={"status":{"ref":"Stun"}}type=1duration=1

Referenced by

Raw data
{
  "status": "Bug",
  "id": "WaterSpore_Skill1",
  "type": "Skill",
  "nature": "Spell",
  "texts": {},
  "anim": {
    "ref": "CastStart"
  },
  "cooldown": 15,
  "duration": 7.5,
  "steps": [
    {
      "on": 0,
      "props": {
        "rotation": {
          "limiter": 320
        }
      },
      "type": 13,
      "duration": 5
    },
    {
      "on": 0,
      "props": {
        "castFlags": 8
      },
      "type": 3,
      "duration": 6
    },
    {
      "on": 0,
      "props": {},
      "type": 11,
      "delay": 0.56,
      "visuals": {
        "playAnims": [
          {
            "anim": {
              "ref": "Cast",
              "loop": true
            }
          }
        ]
      }
    },
    {
      "on": 0,
      "props": {},
      "type": 11,
      "visuals": {
        "fxs": [
          {
            "set": "Hit_Water",
            "props": {
              "offset": {
                "x": 0,
                "y": 0,
                "z": 0,
                "height": 0
              }
            },
            "scale": 0.3,
            "attachName": "B_ROOT",
            "space": 0,
            "flags": 9
          }
        ]
      },
      "duration": 1.2,
      "delay": 0.5
    },
    {
      "on": 0,
      "props": {},
      "id": "GenerateProjectiles",
      "delay": 1
    },
    {
      "props": {
        "projectile": {
          "base": "Orbitter",
          "fxSet": "Projectile_WaterBubble",
          "orbit": {
            "radiusCurve": [
              0,
              0.00553189733241166,
              -0.240663547126972,
              -1.08970911670967,
              0.0788436226413465,
              0.360048594717381,
              0.401746902905042,
              1.1103073621269,
              -0.0931693951244853,
              2.99264962978901e-17,
              0.104554861458488,
              0.00249631573124431,
              0.800614150604516,
              0.00443404026850053,
              -0.152162727884793,
              0.488434050373675,
              -0.5,
              0
            ],
            "radius": 20
          },
          "speed": 100,
          "activationDelay": 1,
          "scale": 1,
          "lifetime": 6,
          "hitFilter": 1
        }
      },
      "on": 8,
      "id": "Projectile",
      "type": 7
    },
    {
      "on": 0,
      "props": {},
      "id": "LaunchProjectiles",
      "delay": 3
    },
    {
      "on": 0,
      "visuals": {
        "playAnims": [
          {
            "anim": {
              "ref": "CastProjectile"
            }
          }
        ],
        "fxs": [
          {
            "set": "Water_Blast",
            "props": {
              "offset": {
                "x": 0,
                "y": 0,
                "z": 2,
                "height": 0
              }
            },
            "scale": 1
          },
          {
            "set": "Water_Aura",
            "props": {},
            "attachName": "B_ROOT",
            "flags": 9
          }
        ]
      },
      "props": {},
      "type": 11,
      "delay": 2,
      "duration": 0.3
    },
    {
      "on": 2,
      "props": {},
      "effects": [
        {
          "effect": 0,
          "scaling": [
            {
              "ratio": 0.75,
              "atb": "FoePower"
            }
          ],
          "affinity": "Water",
          "flags": 0
        }
      ],
      "type": 0
    },
    {
      "on": 1,
      "props": {
        "status": {
          "ref": "Stun"
        }
      },
      "type": 1,
      "duration": 1
    }
  ],
  "aiProps": {
    "castMaxRange": 4
  },
  "flags": [],
  "mastery": [],
  "props": {
    "needTarget": true
  },
  "vars": {
    "var1": 3
  },
  "script": "var spawnRadius = 4;\nvar spawnDelay = 0;\nfunction onStep(s) {\n    switch(s.kind) {\n        case Steps.GenerateProjectiles:\n            var projStep = getStepById(Steps.Projectile);\n\t\t\tvar nb = vars.var1;\n\t\t\tvar count =  round(nb);\n            var interProgress = 1 / (count);\n            var pos = projStep.getProjectileStart();\n            var rotProgress = owner.rotationZ / PI;\n            for(i in 0...count) {\n                var tPos = p3DAdd(pos, getCircleFacingPos(rotProgress + interProgress * i, spawnRadius, owner.getUp()));\n                wait(i * spawnDelay, function() {\n                    projStep.generateProjectile(owner, tPos);\n                });\n            }\n        case Steps.LaunchProjectiles:\n            s.curCtx?.activateProjectiles();\n        default:\n    }\n}\n\nfunction onStop(ctx) {\n    ctx.killProjectiles();\n}",
  "_xrefs": [
    {
      "from_sheet": "unit",
      "from_id": "Elemental_Z1_FS_Underwater",
      "via_field": "skills"
    },
    {
      "from_sheet": "unit",
      "from_id": "Elemental_Z2W_Underwater_U",
      "via_field": "skills"
    }
  ]
}