Home · skill · Spear_Eruption_Passive

Your Skills and Attacks increase your Armor by 2%, stacking up to 15 times.

Properties

status
Done
type
WeaponPassive
nature
Passive
steps
on=0props={}type=11duration=-1visuals={"fxs":[{"set":"Lava_Aura_Spear","props":{"offset":{"x":0,"y":0,"z":1.2,"height":0}},"attachName":"Weapon","space":0,"flags":8}]}

Referenced by

Raw data
{
  "status": "Done",
  "gfx": {
    "file": "UI/icons/atlas_weapon_Spear_96PX.png",
    "size": 48,
    "x": 14,
    "y": 0,
    "width": 2,
    "height": 2
  },
  "id": "Spear_Eruption_Passive",
  "type": "WeaponPassive",
  "nature": "Passive",
  "texts": {
    "name": "Heart of the Furnace",
    "desc": "Your [Skill]s and [Attack]s increase your [Armor] by ::ref_val1%::, stacking up to ::ref_stacks:: times.",
    "rankDescs": [
      {
        "rank": 2,
        "desc": "Stacks up to ::ref_stacks:: times.",
        "flags": 0
      },
      {
        "rank": 3,
        "desc": "At ::ref_stacks:: stacks, critical strikes grant you a Shield equal to ::ref_var1%:: of the damage dealt for ::ref_dur1::.",
        "flags": 0
      }
    ],
    "refs": {
      "ref": "Spear_Eruption_Passive_Status"
    }
  },
  "anim": {},
  "steps": [
    {
      "on": 0,
      "props": {},
      "type": 11,
      "duration": -1,
      "visuals": {
        "fxs": [
          {
            "set": "Lava_Aura_Spear",
            "props": {
              "offset": {
                "x": 0,
                "y": 0,
                "z": 1.2,
                "height": 0
              }
            },
            "attachName": "Weapon",
            "space": 0,
            "flags": 8
          }
        ]
      }
    }
  ],
  "flags": [],
  "mastery": [],
  "props": {},
  "vars": {
    "var1": 0.3,
    "health": 0.25
  },
  "script": "var BUFF =  Skill.Spear_Eruption_Passive_Status;\nvar SHIELD = Skill.Spear_Eruption_Passive_Shield;\n\nfunction onSkillProc(s) {\n\tif (s.isWeaponSkill || s.isSkill || s.baseSkill?.isBasicAttack() || s.baseSkill?.isFinalAttack() ) {\n\t\taddStatus(owner, BUFF);\n\t}\n}\n\n\nfunction onInflictDamage(dmg) {\n\tif (dmg.critical && rank >= 3 && hasStatusMaxStacked(owner, BUFF)) {\n\t\tvar amount = dmg.amount * vars.var1;\n\t\tvar existing = owner.getStatus(SHIELD);\n\t\tvar current = existing?.getShield() ?? 0;\n\t\t//amount = clamp(amount, 0, owner.maxHealth * vars.health - current);\n\t\taddShield(owner, SHIELD, amount);\n\t}\n}",
  "_xrefs": [
    {
      "from_sheet": "item",
      "from_id": "Spear_Eruption",
      "via_field": "skills"
    }
  ]
}