Nectar-infused Blade
Crescent_FlowerSpiral_Passive in SkillsYour [Attack]s deal an additional 12% Faith Magic and slow enemies by 70% for 3.
- id
- Crescent_FlowerSpiral_Passive
- type
- 24
- flags
- 0
- nature
- 5
- script
- function onInflictDamage(dmg) { var spinSkill = owner.getSkill(Skill.Crescent_FlowerSpiral_Skill_1); if (dmg.isBaseAttack || (dmg.baseSkill.inf.id == Skill.Crescent_FlowerSpiral_Skill_1 && spinSkill.rank >= 3)) { if (rank >= 3 && dmg.critical) reduceCooldown(Skill.Crescent_FlowerSpiral_Skill_1, vars.time); playStep(Steps.Damage, dmg.target); addStatusDuration(dmg.target, Skill.Crescent_FlowerSpiral_Passive_Slow, vars.time2); } } function onInflictDamageEval(hit) { if (isServer) { if (hit.baseSkill.inf.id == Skill.Crescent_FlowerSpiral_Passive) { if (rank >= 2) { var tunit = toUnit(hit.target); if (tunit != null && tunit.healthRatio <= vars.threshold) { hit.dmgMult *= (1 + vars.var1); } } } } }
- status
- 2
Raw data
{
"id": "Crescent_FlowerSpiral_Passive",
"gfx": {
"x": 8,
"y": 0,
"file": "UI/icons/atlas_weapon_Crescent_96PX.png",
"size": 48,
"width": 2,
"height": 2
},
"anim": {},
"type": 24,
"vars": {
"time": 1,
"var1": 0.3,
"time2": 3,
"threshold": 0.35
},
"flags": 0,
"props": {},
"steps": [
{
"id": "Damage",
"on": 13,
"type": 6,
"props": {
"status": {
"ref": "Crescent_FlowerSpiral_Passive_Slow"
}
},
"effects": [
{
"flags": 0,
"effect": 0,
"baseVal": 0,
"scaling": [
{
"atb": "Faith",
"ratio": 0.12
}
],
"affinity": "Magic"
}
]
}
],
"texts": {
"desc": "Your [Attack]s deal an additional ::dmg:: and slow enemies by ::ref_val1%:: for ::ref_duration::.",
"name": "Nectar-infused Blade",
"refs": {
"ref": "Crescent_FlowerSpiral_Passive_Slow",
"ref2": "Crescent_FlowerSpiral_Skill_1"
},
"rankDescs": [
{
"desc": "Damage increased by ::var1%:: against enemies under ::threshold%:: [Health].",
"rank": 2,
"flags": 0
},
{
"desc": "Reduces the cooldown of ::ref2_name:: by ::time:: if this critically strikes.",
"rank": 3,
"flags": 0
}
]
},
"nature": 5,
"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}",
"status": 2,
"mastery": []
}