FareverDB

Leeching Poison

Rogue_Talent_LeechingPoison in Skills

Lethal Poison heals you for 20% of the damage dealt.

id
Rogue_Talent_LeechingPoison
type
21
flags
0
nature
5
script
function onInflictDamage(dmg) { if (dmg.skillId == Skill.Rogue_Talent_LethalPoison_Status) { setDynVal(1, dmg.amount * vars.damage); playStep(Steps.Heal, owner); } }
status
2
Raw data
{
  "id": "Rogue_Talent_LeechingPoison",
  "gfx": {
    "x": 18,
    "y": 2,
    "file": "UI/icons/Rogue_talent.png",
    "size": 48,
    "width": 2,
    "height": 2
  },
  "anim": {},
  "type": 21,
  "vars": {
    "damage": 0.2
  },
  "flags": 0,
  "props": {
    "talent": {
      "maxPoints": 2
    },
    "rankOverride": [
      {
        "vars": {
          "damage": 0.4
        },
        "minRank": 2
      }
    ]
  },
  "steps": [
    {
      "id": "Heal",
      "on": 13,
      "type": 12,
      "props": {},
      "effects": [
        {
          "flags": 0,
          "dynVal": 1,
          "effect": 1,
          "scaling": [],
          "affinity": "Raw"
        }
      ]
    }
  ],
  "texts": {
    "desc": "::ref_name:: heals you for ::damage%:: of the damage dealt.",
    "name": "Leeching Poison",
    "refs": {
      "ref": "Rogue_Talent_LethalPoison_Status"
    }
  },
  "nature": 5,
  "script": "function onInflictDamage(dmg) {\n\tif (dmg.skillId == Skill.Rogue_Talent_LethalPoison_Status) {\n\t\tsetDynVal(1, dmg.amount * vars.damage);\n\t\tplayStep(Steps.Heal, owner);\n\t}\n}",
  "status": 2,
  "mastery": []
}