Flowing Vitality
Mage_Talent_FlowingVitality in SkillsWhile in combat, heal yourself for 2% of your [MaxHealth] every 10 [Spark] point spent.
- id
- Mage_Talent_FlowingVitality
- type
- 21
- flags
- 0
- nature
- 5
- script
- var accum = 0.; function onOwnerConsumeResource(res, amount) { if (res == Attribute.Spark && owner.isInCombat && amount < 0) { accum += amount * -1; var count = floor(accum / vars.var2); if (count >= 0) { accum -= count * vars.var2; applyHeal(owner, count * vars.var1 * owner.maxHealth); } } }
- status
- 5
Raw data
{
"id": "Mage_Talent_FlowingVitality",
"gfx": {
"x": 10,
"y": 2,
"file": "UI/icons/Mage_talent.png",
"size": 48,
"width": 2,
"height": 2
},
"anim": {},
"type": 21,
"vars": {
"var1": 0.02,
"var2": 10
},
"flags": 0,
"props": {
"talent": {
"maxPoints": 2
},
"rankOverride": [
{
"vars": {
"var1": 0.04
},
"minRank": 2
}
]
},
"steps": [],
"texts": {
"desc": "While in combat, heal yourself for ::var1%:: of your [MaxHealth] every ::var2:: [Spark] point spent.",
"name": "Flowing Vitality"
},
"nature": 5,
"script": "var accum = 0.;\nfunction onOwnerConsumeResource(res, amount) {\n\tif (res == Attribute.Spark && owner.isInCombat && amount < 0) {\n\t\taccum += amount * -1;\n\t\tvar count = floor(accum / vars.var2);\n\t\tif (count >= 0) {\n\t\t\taccum -= count * vars.var2;\n\t\t\tapplyHeal(owner, count * vars.var1 * owner.maxHealth);\n\t\t}\n\t}\n}",
"status": 5,
"mastery": []
}