Expulse
Book_WaterOrbs_Skill2_Recast in SkillsThrow orbs in the targeted direction, each dealing 40% Intellect + 40% Faith Magic to the first enemy encountered.
- id
- Book_WaterOrbs_Skill2_Recast
- flags
- 5120
- nature
- 3
- script
- function shouldHighlightSkill() { return true; } function onStep(s) { if (s.kind == Steps.Trigger) { var orbCount = getStatusCount(owner, Skill.Book_WaterOrbs_Orb_Charge); for (i in 0...orbCount) { delay(i * 0.15, () -> { consumeStatus(owner, Skill.Book_WaterOrbs_Orb_Charge, 1); playStep(Steps.Shoot); }); } } } function onDamage(dmg) { } function onProjectileEnd(proj) { var waterOrbSkill = owner.getSkill(Skill.Book_WaterOrbs_Skill1); playGlobalStep(StepGlobal.Book_WaterOrb_WaterOrb, null, proj.position); }
- status
- 2
- duration
- 0.35
Raw data
{
"id": "Book_WaterOrbs_Skill2_Recast",
"gfx": {
"x": 8,
"y": 0,
"file": "UI/icons/atlas_Book_96PX.png",
"size": 96
},
"anim": {
"ref": "CastProjectile",
"speed": 1.8,
"startFrame": 5
},
"vars": {},
"flags": 5120,
"props": {},
"steps": [
{
"on": 14,
"type": 25,
"props": {},
"range": 40,
"visuals": {
"fxs": [
{
"set": "Telegraph_Line_Preview",
"flags": 24,
"props": {
"matchStep": "Shoot"
}
}
]
}
},
{
"on": 0,
"type": 3,
"props": {},
"duration": 0.25
},
{
"on": 0,
"type": 13,
"props": {
"rotation": {
"limiter": 0,
"direction": 1
}
}
},
{
"id": "Trigger",
"on": 7,
"delay": -0.1,
"props": {},
"duration": ""
},
{
"on": 2,
"type": 6,
"props": {},
"effects": [
{
"flags": 0,
"effect": 0,
"scaling": [
{
"atb": "Intellect",
"ratio": 0.4
},
{
"atb": "Faith",
"ratio": 0.4
}
],
"affinity": "Magic"
}
]
},
{
"id": "Shoot",
"on": 13,
"type": 7,
"props": {
"projectile": {
"base": "MissileStraight",
"speed": 50,
"generation": {
"count": 1,
"duration": 0,
"stepLinked": true
},
"randomSpread": {
"y": 3,
"z": 5
}
}
},
"range": 40
}
],
"texts": {
"desc": "Throw orbs in the targeted direction, each dealing ::dmg:: to the first enemy encountered.",
"name": "Expulse",
"refs": {
"ref": "Book_WaterOrbs_Skill2"
}
},
"nature": 3,
"script": "function shouldHighlightSkill() {\n\treturn true;\n}\n\nfunction onStep(s) {\n\tif (s.kind == Steps.Trigger) {\n\t\tvar orbCount = getStatusCount(owner, Skill.Book_WaterOrbs_Orb_Charge);\n\t\tfor (i in 0...orbCount) {\n\t\t\tdelay(i * 0.15, () -> {\n\t\t\t\tconsumeStatus(owner, Skill.Book_WaterOrbs_Orb_Charge, 1);\n\t\t\t\tplayStep(Steps.Shoot);\n\t\t\t});\n\t\t}\n\t}\n}\n\nfunction onDamage(dmg) {\n\n}\n\nfunction onProjectileEnd(proj) {\n\tvar waterOrbSkill = owner.getSkill(Skill.Book_WaterOrbs_Skill1);\n\tplayGlobalStep(StepGlobal.Book_WaterOrb_WaterOrb, null, proj.position);\n}",
"status": 2,
"mastery": [],
"duration": 0.35
}