FareverDB

Berserk

Warrior_BerserkStatus in Skills

Increase all damage done by 20% and [Rage] generated from [Skill]s and [Attack]s by 1.

id
Warrior_BerserkStatus
flags
0
nature
4
script
function onReceiveDamage(dmg) { if (hasMastery(Mastery.Warrior_Berserk_M2) && dmg.amount > 0) { setDynVal(1, owner.health * vars.var2); playStep(Steps.SelfHeal, owner); } } function onInflictDamageEval(hit) { hit.dmgMult += vars.damage; } function onSkillProc(ctx) { if (hasMastery(Mastery.Warrior_Berserk_M3)) { if (ctx.skillId == Skill.Warrior_Rage_Strike) { extendDuration(vars.time); } } }
status
2
duration
15
Raw data
{
  "id": "Warrior_BerserkStatus",
  "gfx": {
    "x": 8,
    "y": 0,
    "file": "UI/icons/atlas_class_Warrior_96PX.png",
    "size": 96
  },
  "anim": {},
  "vars": {
    "time": 1,
    "var1": 1,
    "var2": 0.02,
    "damage": 0.2
  },
  "flags": 0,
  "props": {
    "status": {
      "types": [
        {
          "type": "Buff"
        }
      ]
    }
  },
  "steps": [
    {
      "id": "SelfHeal",
      "on": 13,
      "type": 12,
      "props": {},
      "effects": [
        {
          "flags": 0,
          "dynVal": 1,
          "effect": 1,
          "scaling": []
        }
      ]
    },
    {
      "on": 0,
      "type": 11,
      "delay": 0.2,
      "props": {},
      "visuals": {
        "fxs": [
          {
            "set": "Warrior_Aura_Berserk",
            "flags": 8,
            "props": {},
            "space": 0
          }
        ]
      },
      "duration": -1
    }
  ],
  "texts": {
    "desc": "Increase all damage done by ::val1%:: and [Rage] generated from [Skill]s and [Attack]s by ::var1::.",
    "name": "Berserk"
  },
  "nature": 4,
  "script": "function onReceiveDamage(dmg) {\n\tif (hasMastery(Mastery.Warrior_Berserk_M2) && dmg.amount > 0) {\n\t\tsetDynVal(1, owner.health * vars.var2);\n\t\tplayStep(Steps.SelfHeal, owner);\n\t}\n}\n\nfunction onInflictDamageEval(hit) {\n\thit.dmgMult += vars.damage;\n}\n\nfunction onSkillProc(ctx) {\n\tif (hasMastery(Mastery.Warrior_Berserk_M3)) {\n\t\tif (ctx.skillId == Skill.Warrior_Rage_Strike) {\n\t\t\textendDuration(vars.time);\n\t\t}\n\t}\n}",
  "status": 2,
  "affixes": [
    {
      "mod": {},
      "ref": "Damage_ARatio",
      "val": 0.2,
      "conds": {},
      "target": {},
      "target2": {}
    },
    {
      "mod": {},
      "ref": "TAttribute_ARatio",
      "val": 1,
      "conds": {},
      "target": {
        "attribute": "RageGainFactor"
      },
      "target2": {}
    }
  ],
  "mastery": [],
  "duration": 15
}