Home · skill · Sword_Swarm_Passive

Your Weapon Skills surround you with an Hive Swarm for 10.

Hive Swarm deals 30% Faith to nearby enemies and heals you for that amount every 2.

Properties

status
Done
type
WeaponPassive
nature
Passive

Referenced by

Raw data
{
  "status": "Done",
  "gfx": {
    "file": "UI/icons/atlas_weapon_Sword1H_96PX.png",
    "size": 96,
    "x": 3,
    "y": 2
  },
  "id": "Sword_Swarm_Passive",
  "type": "WeaponPassive",
  "nature": "Passive",
  "texts": {
    "name": "Swarm Lord",
    "desc": "Your Weapon Skills surround you with an ::ref_name:: for ::ref_duration::.\n\n::ref_name:: deals ::ref_dmg:: to nearby enemies and heals you for that amount every ::ref_time::.",
    "rankDescs": [
      {
        "rank": 2,
        "desc": "Increases your [Armor] by ::var1%::",
        "flags": 0
      },
      {
        "rank": 3,
        "desc": "Has a ::chance:: chance to poison enemies, dealing ::ref2_dmg:: over ::ref2_duration::.",
        "flags": 0
      }
    ],
    "refs": {
      "ref": "Sword_Swarm_Passive_Swarm",
      "ref2": "Sword_Swarm_Passive_Poison"
    }
  },
  "anim": {},
  "steps": [],
  "flags": [],
  "mastery": [],
  "props": {},
  "vars": {
    "var1": 0.1,
    "var2": 0.2,
    "chance": 0.25
  },
  "script": "function onSkillProc(ctx) {\n\tif (ctx.baseSkill.isWeaponSkill()) {\n\t\taddStatus(owner, Skill.Sword_Swarm_Passive_Swarm);\n\t}\n}\n\nfunction onInflictDamage(dmg) {\n\tif( dmg.skillId == Skill.Sword_Swarm_Passive_Swarm) {\n\t\tif( checkProba(vars.chance) && rank >= 3 ) {\n\t\t\taddStatus(dmg.target, Skill.Sword_Swarm_Passive_Poison);\n\t\t}\n\t\tvar dmg = dmg.amount;\n\t\tvar amount = dmg * vars.var2;\n\t\tapplyHeal(owner, amount);\n \t}\n\n\n}",
  "_xrefs": [
    {
      "from_sheet": "item",
      "from_id": "Sword_Swarm",
      "via_field": "skills"
    }
  ]
}