FareverDB
?

Golcano_ShieldApply

Golcano_ShieldApply in Skills
id
Golcano_ShieldApply
type
11
flags
32
nature
2
script
var roundCount = 0; function onStart(ctx) { roundCount++; } function onStep(s) { if( isServer && s.kind == Steps.SpawnGolem ){ for(i in 0...roundCount) { summonGroup(UnitGroup.Golcano_Minion, "A"); } } } function onReceiveHit(hit) { if(hit.skillId == Skill.Golem_Explosion) { playStep(Steps.End); stop(); } }
cooldown
2
Raw data
{
  "id": "Golcano_ShieldApply",
  "anim": {},
  "type": 11,
  "vars": {},
  "flags": 32,
  "props": {},
  "steps": [
    {
      "id": "Cast",
      "on": 0,
      "type": 3,
      "props": {
        "castFlags": 4
      },
      "visuals": {
        "playAnims": [
          {
            "anim": {
              "file": "Anim/Golem/Skill/Anim_Golem_Common_Shield_Cast.fbx",
              "loop": true
            }
          }
        ]
      },
      "duration": 100
    },
    {
      "id": "SpawnGolem",
      "on": 0,
      "type": 11,
      "props": {},
      "duration": -1
    },
    {
      "on": 0,
      "type": 11,
      "delay": 1.9,
      "props": {
        "loop": {
          "tick": 5
        },
        "canRepeat": true
      },
      "visuals": {
        "fxs": [
          {
            "set": "Fire_Aoe_Unit",
            "flags": 16,
            "props": {
              "offset": {
                "x": 0,
                "y": 0,
                "z": 0,
                "height": 0
              }
            },
            "space": 0
          }
        ]
      },
      "duration": -1
    },
    {
      "on": 0,
      "type": 11,
      "delay": 1.7,
      "props": {
        "loop": {
          "tick": 5
        },
        "canRepeat": true
      },
      "visuals": {
        "playAnims": [
          {
            "anim": {
              "file": "Anim/Golem/Skill/Anim_Golem_Common_Shield_Blast.fbx",
              "restore": "Cast"
            }
          }
        ]
      },
      "duration": -1
    },
    {
      "on": 0,
      "type": 4,
      "delay": 2,
      "props": {
        "loop": {
          "tick": 5
        },
        "canRepeat": true
      },
      "range": 50,
      "effects": [
        {
          "flags": 0,
          "effect": 0,
          "scaling": [
            {
              "atb": "FoePower",
              "ratio": 0.2
            }
          ],
          "affinity": "Fire"
        }
      ],
      "duration": -1
    },
    {
      "on": 0,
      "type": 1,
      "props": {
        "status": {
          "ref": "Golcano_Shield",
          "target": 0
        }
      }
    },
    {
      "on": 1,
      "type": 1,
      "props": {
        "status": {
          "ref": "Golcano_ShieldApply_Status",
          "target": 1
        }
      }
    },
    {
      "id": "End",
      "on": 13,
      "type": 2,
      "props": {
        "status": {
          "ref": "Golcano_Shield",
          "target": 0
        }
      }
    }
  ],
  "texts": {},
  "nature": 2,
  "script": "var roundCount = 0;\nfunction onStart(ctx) {\n\troundCount++;\n}\n\nfunction onStep(s) {\n    if( isServer && s.kind == Steps.SpawnGolem ){\n\t\tfor(i in 0...roundCount) {\n\t\t\tsummonGroup(UnitGroup.Golcano_Minion, \"A\");\n\t\t}\n    }\n}\n\nfunction onReceiveHit(hit) {\n\tif(hit.skillId == Skill.Golem_Explosion) {\n\t\tplayStep(Steps.End);\n\t\tstop();\n\t}\n}",
  "mastery": [],
  "cooldown": 2
}