Home · skill · CleodoraChamp_TornadoArea

Properties

nature
Area
duration
30
steps
on=0visuals={"fxs":[{"set":"Honey_Tornado","space":0,"props":{},"flags":24}]}props={}type=11duration=2id=Beginon=0visuals={"fxs":[{"set":"Telegraph_Generic_Circle","space":0,"props":{},"flags":56}]}props={}type=11duration=2id=Telegraphon=0cond={"step":"Telegraph"}props={"loop":{"tick":0.5},"area":{"hitFilter":1,"transferFX":"Begin"}}effects=[{"effect":0,"scaling":[{"ratio":0.2,"atb":"FoePower"}],"sideEffects":{"knockBack":{"type":0,"knockUpForce":5,"pushForce":-3}},"affinity":"Honey","flags":0}]type=4duration=-1range=4delay=1.9on=1props={"status":{"ref":"HoneyCovered"}}type=1
Raw data
{
  "id": "CleodoraChamp_TornadoArea",
  "nature": "Area",
  "texts": {},
  "anim": {},
  "duration": 30,
  "steps": [
    {
      "on": 0,
      "visuals": {
        "fxs": [
          {
            "set": "Honey_Tornado",
            "space": 0,
            "props": {},
            "flags": 24
          }
        ]
      },
      "props": {},
      "type": 11,
      "duration": 2,
      "id": "Begin"
    },
    {
      "on": 0,
      "visuals": {
        "fxs": [
          {
            "set": "Telegraph_Generic_Circle",
            "space": 0,
            "props": {},
            "flags": 56
          }
        ]
      },
      "props": {},
      "type": 11,
      "duration": 2,
      "id": "Telegraph"
    },
    {
      "on": 0,
      "cond": {
        "step": "Telegraph"
      },
      "props": {
        "loop": {
          "tick": 0.5
        },
        "area": {
          "hitFilter": 1,
          "transferFX": "Begin"
        }
      },
      "effects": [
        {
          "effect": 0,
          "scaling": [
            {
              "ratio": 0.2,
              "atb": "FoePower"
            }
          ],
          "sideEffects": {
            "knockBack": {
              "type": 0,
              "knockUpForce": 5,
              "pushForce": -3
            }
          },
          "affinity": "Honey",
          "flags": 0
        }
      ],
      "type": 4,
      "duration": -1,
      "range": 4,
      "delay": 1.9
    },
    {
      "on": 1,
      "props": {
        "status": {
          "ref": "HoneyCovered"
        }
      },
      "type": 1
    }
  ],
  "flags": [],
  "mastery": [],
  "props": {},
  "vars": {
    "speed": 5,
    "wait1": 5,
    "range": 3
  },
  "script": "var following = false;\nvar lastPick = -1.;\nvar direction = null;\n\nvar tornado = null;\n\nfunction onStart(ctx) {\n    following = false;\n    lastPick = -1.;\n    direction = null;\n}\n\nfunction onCreateArea(area) {\n\ttornado = area;\n}\n\nfunction onStepEnd(step) {\n    if(step.kind == Steps.Telegraph)\n        following = true;\n}\n\nfunction onUpdate(dt) {\n    if(!following)\n        return;\n    if(lastPick < 0 || elapsedTime > lastPick + vars.wait1) {\n        lastPick = elapsedTime;\n        var enemy = owner.getClosestEnemy();\n        if(enemy != null) {\n\t\t\tvar pos = getRandomPosInRange(enemy, 0, vars.range);\n            direction = p3DSub(pos, tornado.position);\n        }\n    }\n    if(direction != null) {\n        moveTowards(tornado, p3DAdd(tornado.position, direction), vars.speed, dt, true);\n\n\t\t// skill.layer.debug.clientsDebugCross(tornado.position, 0xff00ff, 0.2);\n\t\t// skill.layer.debug.clientsDebugLine(tornado.position, p3DAdd(tornado.position, direction), 0x0000ff, 0.2);\n    }\n}"
}