Home · skill · Priest_Talent_Sunlight_Status
Your next Final Combo Attack deals an additional 60% Faith.
Properties
- status
- Done
- nature
- Status
- duration
- 6
- steps
Raw data
{
"status": "Done",
"gfx": {
"file": "UI/icons/Priest_talent.png",
"size": 48,
"x": 0,
"y": 6,
"width": 2,
"height": 2
},
"id": "Priest_Talent_Sunlight_Status",
"nature": "Status",
"texts": {
"name": "Sunlight",
"desc": "Your next [ComboAttack] deals an additional ::dmg::."
},
"anim": {},
"duration": 6,
"steps": [
{
"on": 0,
"props": {},
"type": 11,
"visuals": {
"fxs": [
{
"set": "Status_Light_Sunlight_Mark",
"props": {
"offset": {
"x": 0,
"y": 0,
"z": 1.5,
"height": 1
}
},
"space": 0,
"flags": 8
}
]
},
"duration": -1,
"delay": 0
},
{
"on": 13,
"props": {
"stepGlobal": {
"globalId": "SunlightDamage"
}
},
"id": "Trigger"
},
{
"on": 13,
"props": {},
"type": 6,
"effects": [
{
"effect": 0,
"scaling": [
{
"ratio": 0.6,
"atb": "Faith"
}
],
"flags": 0,
"affinity": "Light"
}
],
"id": "Damage"
},
{
"on": 13,
"props": {
"position": {
"origin": 4
}
},
"id": "AreaDamage",
"type": 4,
"range": 15
}
],
"flags": [],
"mastery": [],
"props": {
"status": {
"types": [
{
"type": "Buff"
}
]
}
},
"vars": {},
"script": "function onInflictDamage(hit) {\n\tif (hit.isFirstHit && hit.isFinalCombo) {\n\t\tplayStep(Steps.Trigger, hit.target);\n\t\tif (owner != status.instigator || !hasTalent(Skill.Priest_Talent_SolarDevotion)) {\n\t\t\towner.tryConsumeStatus(Skill.Priest_Talent_Sunlight_Status, status.instigator);\n\t\t}\n\t}\n}\n\nfunction onHit(hit) {\n\tif (hit.stepId == Steps.AreaDamage) {\n\t\tplayStep(Steps.Damage, hit.target);\n\t}\n}\n\nfunction onStep(s) {\n\tif (s.kind == Steps.Trigger) {\n\t\tif (hasTalent(Skill.Priest_Talent_SunHalo)) {\n\t\t\tplayStep(Steps.AreaDamage, ctx.aimTarget);\n\t\t} else {\n\t\t\tplayStep(Steps.Damage, ctx.aimTarget);\n\t\t}\n\t}\n}"
}