Home · skill · Mage_Talent_FlowingVitality

While in combat, heal yourself for 2% of your Maximum Health every 10 Spark point spent.

Properties

status
Bug
type
Talent
nature
Passive

Referenced by

Raw data
{
  "status": "Bug",
  "gfx": {
    "file": "UI/icons/Mage_talent.png",
    "size": 48,
    "x": 10,
    "y": 2,
    "width": 2,
    "height": 2
  },
  "id": "Mage_Talent_FlowingVitality",
  "type": "Talent",
  "nature": "Passive",
  "texts": {
    "name": "Flowing Vitality",
    "desc": "While in combat, heal yourself for ::var1%:: of your [MaxHealth] every ::var2:: [Spark] point spent."
  },
  "anim": {},
  "steps": [],
  "flags": [],
  "mastery": [],
  "props": {
    "rankOverride": [
      {
        "minRank": 2,
        "vars": {
          "var1": 0.04
        }
      }
    ],
    "talent": {
      "maxPoints": 2
    }
  },
  "vars": {
    "var1": 0.02,
    "var2": 10
  },
  "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}",
  "_xrefs": [
    {
      "from_sheet": "unit",
      "from_id": "Mage",
      "via_field": "talentTrees"
    }
  ]
}