Home · skill · Crescent_FlowerSpiral_Passive
Properties
- status
- Done
- type
- WeaponPassive
- nature
- Passive
- steps
Referenced by
item (1)
Raw data
{
"status": "Done",
"gfx": {
"file": "UI/icons/atlas_weapon_Crescent_96PX.png",
"size": 48,
"x": 8,
"y": 0,
"width": 2,
"height": 2
},
"id": "Crescent_FlowerSpiral_Passive",
"type": "WeaponPassive",
"nature": "Passive",
"texts": {
"name": "Nectar-infused Blade",
"desc": "Your [Attack]s deal an additional ::dmg:: and slow enemies by ::ref_val1%:: for ::ref_duration::.",
"rankDescs": [
{
"rank": 2,
"desc": "Damage increased by ::var1%:: against enemies under ::threshold%:: [Health].",
"flags": 0
},
{
"rank": 3,
"desc": "Reduces the cooldown of ::ref2_name:: by ::time:: if this critically strikes.",
"flags": 0
}
],
"refs": {
"ref": "Crescent_FlowerSpiral_Passive_Slow",
"ref2": "Crescent_FlowerSpiral_Skill_1"
}
},
"anim": {},
"steps": [
{
"on": 13,
"props": {
"status": {
"ref": "Crescent_FlowerSpiral_Passive_Slow"
}
},
"effects": [
{
"effect": 0,
"scaling": [
{
"ratio": 0.12,
"atb": "Faith"
}
],
"affinity": "Magic",
"baseVal": 0,
"flags": 0
}
],
"type": 6,
"id": "Damage"
}
],
"flags": [],
"mastery": [],
"props": {},
"vars": {
"threshold": 0.35,
"var1": 0.3,
"time": 1,
"time2": 3
},
"script": "function onInflictDamage(dmg) {\n\n\tvar spinSkill = owner.getSkill(Skill.Crescent_FlowerSpiral_Skill_1);\n\tif (dmg.isBaseAttack || (dmg.baseSkill.inf.id == Skill.Crescent_FlowerSpiral_Skill_1 && spinSkill.rank >= 3)) {\n\t\tif (rank >= 3 && dmg.critical)\n\t\t\treduceCooldown(Skill.Crescent_FlowerSpiral_Skill_1, vars.time);\n\n\t\tplayStep(Steps.Damage, dmg.target);\n\t\taddStatusDuration(dmg.target, Skill.Crescent_FlowerSpiral_Passive_Slow, vars.time2);\n\t}\n}\n\nfunction onInflictDamageEval(hit) {\n\tif (isServer) {\n\t\tif (hit.baseSkill.inf.id == Skill.Crescent_FlowerSpiral_Passive) {\n\t\t\tif (rank >= 2) {\n\t\t\t\tvar tunit = toUnit(hit.target);\n\t\t\t\tif (tunit != null && tunit.healthRatio <= vars.threshold) {\n\t\t\t\t\thit.dmgMult *= (1 + vars.var1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"_xrefs": [
{
"from_sheet": "item",
"from_id": "Crescent_FlowerSpiral",
"via_field": "skills"
}
]
}