Home · skill · Ulserous_LuonDischarge
Prepare to cast hail of Light projectiles, dealing [.55FP] Magic damage to players.
Properties
- status
- WIP
- type
- Skill
- nature
- Spell
- cooldown
- 20
- duration
- 23
- steps
Referenced by
unit (1)
Raw data
{
"status": "WIP",
"id": "Ulserous_LuonDischarge",
"type": "Skill",
"nature": "Spell",
"texts": {
"name": "Luon Discharge",
"desc": "Prepare to cast hail of Light projectiles, dealing [.55FP] Magic damage to players."
},
"anim": {
"file": "Anim/Herald/Anim_Herald_Common_Discharge_Start.fbx"
},
"cooldown": 20,
"duration": 23,
"steps": [
{
"on": 0,
"props": {},
"type": 3,
"duration": 3,
"id": "InitialCast",
"delay": 0
},
{
"on": 0,
"visuals": {
"fxs": [
{
"set": "Light_Cast_Hand",
"space": 0,
"props": {
"offset": {
"x": -2,
"y": -2,
"z": 0,
"height": 0
}
},
"flags": 8,
"attachName": "B_Palm_L",
"scale": 0.65
}
]
},
"props": {},
"type": 11,
"delay": 2,
"duration": 3
},
{
"on": 7,
"props": {
"castFlags": 12
},
"type": 3,
"duration": 20,
"id": "Channel"
},
{
"on": 12,
"cond": {
"step": "InitialCast"
},
"visuals": {
"fxs": [
{
"set": "Light_Cast_LuonDischarge",
"space": 2,
"flags": 24,
"props": {}
}
],
"playAnims": [
{
"anim": {
"loop": true,
"file": "Anim/Herald/Anim_Herald_Common_Discharge_Cast.fbx",
"blend": 0.1
}
}
]
},
"props": {
"startSteps": [
{
"step": "ProjectileCast",
"force": true,
"overrideDelay": 2
}
]
},
"type": 3,
"id": "Loop",
"duration": 2,
"delay": 0
},
{
"on": 12,
"cond": {
"step": "Loop"
},
"visuals": {
"playAnims": [
{
"anim": {
"loop": false,
"file": "Anim/Herald/Anim_Herald_Common_Discharge_Salve.fbx",
"blend": 0.2
}
}
]
},
"props": {
"startSteps": [
{
"step": "Loop",
"force": true,
"overrideDelay": 1.23
},
{
"step": "Attack",
"overrideDelay": 1.23,
"force": true
}
]
},
"type": 11,
"delay": 0,
"id": "ProjectileCast",
"duration": 1.23
},
{
"on": 12,
"cond": {
"step": "Loop"
},
"props": {
"startSteps": [
{
"step": "Loop",
"force": true,
"overrideDelay": 1.23
},
{
"step": "Attack",
"overrideDelay": 1.23,
"force": true
}
]
},
"id": "AreasCast",
"type": 11,
"delay": 0,
"duration": 1.23
},
{
"on": 8,
"cond": {
"step": "Loop"
},
"props": {
"targetSkill": "Ulserous_LuonDischargeArea",
"position": {
"random": {
"range": 60,
"maxZDiff": 3,
"minRange": 2
}
},
"startSteps": [
{
"startSteps": [
{
"step": "Loop",
"force": true,
"overrideDelay": 0.75
},
{
"step": "Attack",
"overrideDelay": 0.75,
"force": true
}
],
"step": "Loop",
"overrideDelay": 1.23,
"force": true
}
]
},
"id": "AreaRandom",
"type": 5,
"delay": 0,
"duration": 1.23
},
{
"on": 8,
"cond": {
"step": "Loop"
},
"props": {
"targetSkill": "Ulserous_LuonDischargeArea",
"position": {
"random": {
"range": 1,
"maxZDiff": 3
},
"origin": 1
},
"startSteps": [
{
"step": "Loop",
"overrideDelay": 1.23,
"force": true
}
]
},
"id": "AreaTarget",
"type": 5,
"delay": 0,
"duration": 1.23
},
{
"on": 2,
"props": {
"position": {
"origin": 2,
"groundSnap": true
}
},
"effects": [
{
"affinity": "Light",
"effect": 0,
"scaling": [
{
"ratio": 0.5,
"atb": "FoePower"
}
],
"baseVal": 0,
"flags": 0
}
],
"type": 0,
"duration": 0,
"range": 40,
"id": "Attack"
},
{
"on": 7,
"cond": {
"step": "Channel"
},
"visuals": {
"playAnims": [
{
"anim": {
"file": "Anim/Herald/Anim_Herald_Common_Discharge_End.fbx"
}
}
]
},
"props": {},
"type": 11
}
],
"aiProps": {
"pickPrio": 10
},
"flags": [],
"mastery": [],
"props": {},
"vars": {
"var1": 10,
"var2": 15
},
"script": "var castCount = 0;\nfunction onStep(s) {\n if(s.kind == Steps.AreasCast) {\n castCount = 0;\n var castStep = getStepById(Steps.AreasCast);\n var totalDuration = castStep.duration;\n var timeBetweenFires = totalDuration / vars.var1;\n var areaRand = Steps.AreaRandom;\n var areaTarget = Steps.AreaTarget;\n for(i in 0...round(vars.var1)) {\n castCount++;\n var areaStep = areaRand;\n if((castCount % round(vars.var2)) == 0)\n areaStep = areaTarget;\n wait(i*timeBetweenFires, function() {\n playStep(areaStep);\n });\n }\n }\n}",
"_xrefs": [
{
"from_sheet": "unit",
"from_id": "Ulserous",
"via_field": "skills"
}
]
}