FareverDB

Bloom

Crescent_FlowerSpiral_Skill_2_Status in Skills

All your damage heals nearby allies for 25% of the damage dealt for 4.

id
Crescent_FlowerSpiral_Skill_2_Status
flags
0
nature
4
script
var healAcc = 0.; var timer = 0.; function onInflictDamage(dmg) { healAcc += dmg.amount * vars.heal; if (rank >= 3 && dmg.critical) extendDuration(vars.time); } function onUpdate(dt) { timer += dt; if (timer > vars.dur1) { setDynVal(1, healAcc); if (healAcc > 0) { playStep(Steps.AreaHeal); } timer -= vars.dur1; healAcc = 0; } }
status
2
duration
4
Raw data
{
  "id": "Crescent_FlowerSpiral_Skill_2_Status",
  "gfx": {
    "x": 6,
    "y": 0,
    "file": "UI/icons/atlas_weapon_Crescent_96PX.png",
    "size": 48,
    "width": 2,
    "height": 2
  },
  "anim": {},
  "vars": {
    "dur1": 0.5,
    "heal": 0.25,
    "time": 0.25,
    "range": 15
  },
  "flags": 0,
  "props": {
    "status": {
      "types": [
        {
          "type": "Buff"
        }
      ]
    }
  },
  "steps": [
    {
      "id": "AreaHeal",
      "on": 13,
      "type": 4,
      "props": {
        "area": {
          "hitFilter": 6
        },
        "canRepeat": true
      },
      "range": 15,
      "effects": [
        {
          "flags": 0,
          "dynVal": 1,
          "effect": 1,
          "baseVal": 1,
          "scaling": []
        }
      ],
      "visuals": {
        "hitFx": "Generic_Heal"
      },
      "duration": ""
    },
    {
      "on": 0,
      "type": 11,
      "props": {},
      "range": "\n",
      "visuals": {
        "fxs": [
          {
            "set": "Honey_Aura",
            "flags": 9,
            "props": {
              "offset": {
                "x": 0,
                "y": 0,
                "z": 0,
                "height": 0.5
              }
            },
            "space": 0
          }
        ]
      },
      "duration": -1
    }
  ],
  "texts": {
    "desc": "All your damage heals nearby allies for ::heal%:: of the damage dealt for ::duration::.",
    "name": "Bloom"
  },
  "nature": 4,
  "script": "var healAcc = 0.;\nvar timer = 0.;\n\nfunction onInflictDamage(dmg) {\n\thealAcc += dmg.amount * vars.heal;\n\tif (rank >= 3 && dmg.critical)\n\t\textendDuration(vars.time);\n}\n\nfunction onUpdate(dt) {\n\ttimer += dt;\n\tif (timer > vars.dur1) {\n\t\tsetDynVal(1, healAcc);\n\t\tif (healAcc > 0) {\n\t\t\tplayStep(Steps.AreaHeal);\n\t\t}\n\t\ttimer -= vars.dur1;\n\t\thealAcc = 0;\n\t}\n}",
  "status": 2,
  "affixes": [
    {
      "mod": {},
      "ref": "TAttribute_ARatio",
      "val": 0.5,
      "conds": {
        "minRank": 2
      },
      "target": {
        "attribute": "MoveSpeedFactor"
      },
      "target2": {},
      "displayed": true
    }
  ],
  "mastery": [],
  "duration": 4
}