Dash_Status
Dash_Status in Skills[MoveSpeedFactor] increased by 30%.
- id
- Dash_Status
- flags
- 4096
- nature
- 4
- script
- var timeStationary = 0.0; function onSkillProc(ctx) { if (!ctx.skill.isPassive()) { removeBuff(); } } function onUpdate(dt) { if (ownerHero != null && ownerHero.gliding) { removeBuff(); } if (Math.abs(owner.moveX) < 0.01 && Math.abs(owner.moveY) < 0.01) { timeStationary += dt; } else { timeStationary = 0; } if (timeStationary > vars.duration) { removeBuff(); } } function removeBuff() { removeStatus(owner, status.kind); }
Raw data
{
"id": "Dash_Status",
"gfx": {
"x": 1,
"y": 0,
"file": "UI/icons/atlas_abilities_status_96PX.png",
"size": 96
},
"anim": {},
"vars": {
"duration": 1
},
"flags": 4096,
"props": {
"status": {
"types": [
{
"type": "Buff"
}
]
}
},
"steps": [
{
"on": 0,
"type": 11,
"props": {},
"duration": -1
}
],
"texts": {
"desc": "[MoveSpeedFactor] increased by ::val1::%."
},
"nature": 4,
"script": "var timeStationary = 0.0;\n\nfunction onSkillProc(ctx) {\n\tif (!ctx.skill.isPassive()) {\n\t\tremoveBuff();\n\t}\n}\n\nfunction onUpdate(dt) {\n\tif (ownerHero != null && ownerHero.gliding) {\n\t\tremoveBuff();\n\t}\n\tif (Math.abs(owner.moveX) < 0.01 && Math.abs(owner.moveY) < 0.01) {\n\t\ttimeStationary += dt;\n\t} else {\n\t\ttimeStationary = 0;\n\t}\n\n\tif (timeStationary > vars.duration) {\n\t\tremoveBuff();\n\t}\n}\n\nfunction removeBuff() {\n\tremoveStatus(owner, status.kind);\n}",
"affixes": [
{
"mod": {},
"ref": "TAttribute_ARatio",
"val": 0.3,
"conds": {},
"target": {
"attribute": "MoveSpeedFactor"
},
"target2": {}
}
],
"mastery": []
}