Home · skill · Mage_RayOfSpark
Properties
- status
- WIP
- type
- Signature Skill
- nature
- Spell
- cooldown
- 12
- steps
- mastery
Referenced by
unit (1)
Raw data
{
"status": "WIP",
"gfx": {
"file": "UI/icons/atlas_class_Mage_96PX.png",
"size": 96,
"x": 0,
"y": 0
},
"id": "Mage_RayOfSpark",
"type": "SignatureSkill",
"nature": "Spell",
"texts": {
"name": "Spark Beam",
"desc": "Channels a powerful beam dealing ::dmg:: over ::dur1::.\nEach tick regenerates ::atbgain:: [Spark].",
"refs": {
"ref": "Slow"
}
},
"anim": {
"ref": "MageRayStart",
"blend": 0.1
},
"cooldown": 12,
"steps": [
{
"visuals": {
"linkFx": {
"set": "Spark_Zap_Loop",
"startAttach": "B_Palm_L",
"scale": 1.5,
"startRadius": 0.85
},
"hitFx": "NoFX"
},
"props": {
"castFlags": 4,
"loop": {
"tick": 0.5,
"flags": 3
}
},
"effects": [
{
"effect": 0,
"scaling": [
{
"ratio": 1,
"atb": "Intellect"
}
],
"affinity": "Magic",
"flags": 0
}
],
"on": 0,
"type": 22,
"duration": "dur1",
"id": "ChannelTick",
"delay": 0.2,
"range": 40
},
{
"on": 0,
"props": {},
"type": 11,
"visuals": {
"playAnims": [
{
"anim": {
"ref": "MageRay",
"blend": 0,
"loop": true
}
}
]
},
"delay": 0.2
},
{
"on": 0,
"props": {},
"type": 11,
"delay": 0.2,
"visuals": {
"fxs": [
{
"set": "Spark_Blast_Launch",
"props": {
"offset": {
"x": -0.65,
"y": -0.65,
"z": 0,
"height": 0
}
},
"attachName": "B_Palm_L",
"scale": 1,
"space": 0
}
]
}
},
{
"on": 0,
"props": {
"rotation": {
"direction": 1,
"limiter": 5000
}
},
"type": 14,
"duration": -1
},
{
"on": 1,
"props": {},
"effects": [
{
"effect": 3,
"scaling": [
{
"ratio": 0.12,
"atb": "MaxSpark"
}
],
"target": {
"atb": "Spark"
},
"flags": 0
}
],
"type": 12
},
{
"on": 1,
"props": {
"status": {
"ref": "Mage_RayOfSpark_Status"
}
},
"type": 1,
"cond": {
"mastery": "Mage_RayOfSpark_M1"
},
"duration": 0.5,
"range": ""
},
{
"on": 13,
"props": {
"position": {
"origin": 1
},
"area": {
"hitFilter": 1
}
},
"type": 4,
"range": 5,
"id": "M2_Area"
},
{
"on": 13,
"props": {},
"id": "M2_HitDmg",
"type": 6,
"effects": [
{
"effect": 0,
"scaling": [],
"affinity": "Magic",
"flags": 0,
"baseVal": 1,
"dynVal": 3
}
]
},
{
"on": 13,
"props": {},
"type": 12,
"effects": [
{
"effect": 1,
"scaling": [],
"flags": 0,
"dynVal": 2,
"baseVal": 0
}
],
"id": "M3_SelfHeal",
"cond": {
"mastery": "Mage_RayOfSpark_M3"
}
}
],
"flags": [],
"mastery": [
{
"id": "Mage_RayOfSpark_M1",
" vars": {},
"gfx": {
"file": "UI/Portraits/Items/Masteries/Mage_RayOfSpark/Mage_RayOfSpark_M1.png",
"size": 256,
"x": 0,
"y": 0
},
"text": {
"name": "Frost Infusion",
"desc": "::name:: slows the enemy by ::ref_val1%:: for all the duration."
}
},
{
"id": "Mage_RayOfSpark_M2",
"gfx": {
"file": "UI/Portraits/Items/Masteries/Mage_RayOfSpark/Mage_RayOfSpark_M2.png",
"size": 256,
"x": 0,
"y": 0
},
"text": {
"name": "Lightning Infusion",
"desc": "::name:: deals additional [Magic] damage to enemies close to the target equal to ::var3%:: of the damage dealt."
},
"vars": {
"var3": 0.35
}
},
{
"id": "Mage_RayOfSpark_M3",
"gfx": {
"file": "UI/Portraits/Items/Masteries/Mage_RayOfSpark/Mage_RayOfSpark_M3.png",
"size": 256,
"x": 0,
"y": 0
},
"text": {
"name": "Nature Infusion",
"desc": "::name:: heals you for ::var2%:: of the damage dealt."
},
"vars": {
"var2": 0.25
}
}
],
"props": {
"hit": {
"camShake": 2,
"shake": 3
}
},
"vars": {
"dur1": 2,
"var3": 0.2
},
"script": "function onInflictDamage(dmg) {\n\tif (dmg.stepId == Steps.ChannelTick && dmg.amount > 0) {\n\t\tif (hasMastery(Mastery.Mage_RayOfSpark_M2)) {\n\t\t\tsetDynVal(3, dmg.amount * vars.var3);\n\t\t\tplayStep(Steps.M2_Area, dmg.target);\n\t\t}\n\t\tif (hasMastery(Mastery.Mage_RayOfSpark_M3)) {\n\t\t\tsetDynVal(2, dmg.amount * vars.var2);\n\t\t\tplayStep(Steps.M3_SelfHeal, owner);\n\t\t}\n\t}\n}\nfunction onHit(hit) {\n\tif (hit.stepId == Steps.M2_Area && hit.target != ctx.aimTarget) {\n\t\tplayStep(Steps.M2_HitDmg, hit.target);\n\t}\n}",
"_xrefs": [
{
"from_sheet": "unit",
"from_id": "Mage",
"via_field": "skills"
}
]
}