Home · skill · Rogue_Talent_OpportunityStrike

Your Base Attacks applying Lethal Poison have a 0.5 chance to strike again.

Properties

status
Done
type
Talent
nature
Passive

Referenced by

Raw data
{
  "status": "Done",
  "gfx": {
    "file": "UI/icons/Rogue_talent.png",
    "size": 48,
    "x": 2,
    "y": 0,
    "width": 2,
    "height": 2
  },
  "id": "Rogue_Talent_OpportunityStrike",
  "type": "Talent",
  "nature": "Passive",
  "texts": {
    "name": "Opportunity Strike",
    "desc": "Your [BasicAttack]s applying ::ref_name:: have a ::chance:: chance to strike again.",
    "refs": {
      "ref": "Rogue_Talent_LethalPoison_Status"
    }
  },
  "anim": {},
  "steps": [],
  "flags": [],
  "mastery": [],
  "props": {
    "talent": {
      "maxPoints": 1
    }
  },
  "vars": {
    "chance": 0.5
  },
  "script": "function onInflictStatusEval(s) {\n\tif (s.fromSkill == null) { return; }\n\tif (s.fromSkill.isBasicAttack()) {\n\t\tif (s.status.kind == Skill.Rogue_Talent_LethalPoison_Status) {\n\t\t\tif (checkProba(vars.chance)) {\n\t\t\t\tvar dmgStep = getDamageStepIndex(s.fromSkill);\n\t\t\t\tif (dmgStep >= 0) {\n\t\t\t\t\ttrace(s.skillCtx.skill.kind);\n\t\t\t\t\tif (playStepIndexOnSkill(dmgStep, s.fromSkill, s.target) != null) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
  "_xrefs": [
    {
      "from_sheet": "unit",
      "from_id": "Rogue",
      "via_field": "talentTrees"
    }
  ]
}