Home · skill · Mage_Talent_InfiniteResources
While in combat, regenerates 2 Spark point every 3.
Properties
- status
- Bug
- type
- Talent
- nature
- Passive
Referenced by
unit (1)
Raw data
{
"status": "Bug",
"gfx": {
"file": "UI/icons/Mage_talent.png",
"size": 48,
"x": 0,
"y": 4,
"width": 2,
"height": 2
},
"id": "Mage_Talent_InfiniteResources",
"type": "Talent",
"nature": "Passive",
"texts": {
"desc": "While in combat, regenerates ::var1:: [Spark] point every ::dur1::.",
"name": "Infinite Resources"
},
"anim": {},
"steps": [],
"flags": [],
"mastery": [],
"props": {
"talent": {
"maxPoints": 1
}
},
"vars": {
"var1": 2,
"dur1": 3
},
"script": "var prevTime = -1.;\n\nfunction onUpdate(dt) {\n\tvar curTime = owner.getTimeInCombat();\n\tif (curTime >= 0 && prevTime < 0) {\n\t\tprevTime = 0;\n\t}\n\tif (curTime - prevTime >= vars.dur1) {\n\t\tprevTime = curTime;\n\t\taddResource(Attribute.Spark, vars.var1);\n\t}\n\tif (curTime < prevTime)\n\t\tprevTime = curTime;\n}",
"_xrefs": [
{
"from_sheet": "unit",
"from_id": "Mage",
"via_field": "talentTrees"
}
]
}