Raw data
{
"id": "AddToCollection",
"anim": {},
"type": 16,
"vars": {},
"flags": 0,
"props": {},
"steps": [
{
"on": 0,
"type": 3,
"props": {},
"duration": 1
},
{
"id": "End",
"on": 7,
"props": {
"flags": 2
}
}
],
"texts": {
"name": "Add to Collection"
},
"nature": 2,
"script": "function checkEnabled() {\n\tif( ownerHero.player.progress.checkAddToCollection(skill.originItem) != Ok )\n\t\treturn Reason.ItemAlreadyOwned;\n\treturn Ok;\n}\n\nfunction onStep(s) {\n if(s.kind == Steps.End)\n\t\townerHero.player.progress.addToCollection(skill.originItem);\n}",
"mastery": [],
"cooldown": 1,
"duration": 0.1
}