Heart of Darkness
Lvl: 10 Buff CD: 24 sec Skill Delay: 2 sec SP: 300 Range: 6 Cast Time: 5 Fixed Cast Time: 1

Causes one enemy to be frenzied, and the ranged damage skill it casts will deal to an enemy unit with 30% DMG for 12s. The effect cannot be dispersed. (Invalid against Mini/Mvp)

Lvl: 9 Buff CD: 24 sec Skill Delay: 2 sec SP: 300 Range: 6 Cast Time: 5 Fixed Cast Time: 1
• Causes one enemy to be frenzied, and the ranged damage skill it casts will deal to an enemy unit with 28% DMG for 11.5s. The effect cannot be dispersed. (Invalid against Mini/Mvp)
Lvl: 8 Buff CD: 24 sec Skill Delay: 2 sec SP: 300 Range: 6 Cast Time: 5 Fixed Cast Time: 1
• Causes one enemy to be frenzied, and the ranged damage skill it casts will deal to an enemy unit with 26% DMG for 11s. The effect cannot be dispersed. (Invalid against Mini/Mvp)
Lvl: 7 Buff CD: 24 sec Skill Delay: 2 sec SP: 300 Range: 6 Cast Time: 5 Fixed Cast Time: 1
• Causes one enemy to be frenzied, and the ranged damage skill it casts will deal to an enemy unit with 24% DMG for 10.5s. The effect cannot be dispersed. (Invalid against Mini/Mvp)
Lvl: 6 Buff CD: 24 sec Skill Delay: 2 sec SP: 300 Range: 6 Cast Time: 5 Fixed Cast Time: 1
• Causes one enemy to be frenzied, and the ranged damage skill it casts will deal to an enemy unit with 22% DMG for 10s. The effect cannot be dispersed. (Invalid against Mini/Mvp)
Lvl: 5 Buff CD: 24 sec Skill Delay: 2 sec SP: 300 Range: 6 Cast Time: 5 Fixed Cast Time: 1
• Causes one enemy to be frenzied, and the ranged damage skill it casts will deal to an enemy unit with 20% DMG for 9.5s. The effect cannot be dispersed. (Invalid against Mini/Mvp)
Lvl: 4 Buff CD: 24 sec Skill Delay: 2 sec SP: 300 Range: 6 Cast Time: 5 Fixed Cast Time: 1
• Causes one enemy to be frenzied, and the ranged damage skill it casts will deal to an enemy unit with 18% DMG for 9s. The effect cannot be dispersed. (Invalid against Mini/Mvp)
Lvl: 3 Buff CD: 24 sec Skill Delay: 2 sec SP: 300 Range: 6 Cast Time: 5 Fixed Cast Time: 1
• Causes one enemy to be frenzied, and the ranged damage skill it casts will deal to an enemy unit with 16% DMG for 8.5s. The effect cannot be dispersed. (Invalid against Mini/Mvp)
Lvl: 2 Buff CD: 24 sec Skill Delay: 2 sec SP: 300 Range: 6 Cast Time: 5 Fixed Cast Time: 1
• Causes one enemy to be frenzied, and the ranged damage skill it casts will deal to an enemy unit with 14% DMG for 8s. The effect cannot be dispersed. (Invalid against Mini/Mvp)
Lvl: 1 Buff CD: 24 sec Skill Delay: 2 sec SP: 300 Range: 6 Cast Time: 5 Fixed Cast Time: 1
• Causes one enemy to be frenzied, and the ranged damage skill it casts will deal to an enemy unit with 12% DMG for 7.5s. The effect cannot be dispersed. (Invalid against Mini/Mvp)

Enemy 5020

function CommonFun.calcBuff_5020(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Value = srcUser:GetGemValue(c)
  local A = lv * a + b + Value / 100000
  return A
end

Enemy

{
  "id": 135100,
  "BuffDesc": "Will deal damage to friendly units",
  "BuffIcon": "skillbuff_2349001",
  "BuffName": "Heart of Darkness",
  "BuffRate": {
    "Odds": {
      "a": 0,
      "b": 100,
      "type": 3070
    }
  },
  "BuffType": {
    "isgain": 0,
    "isdisperse": 0
  },
  "IconType": 1,
  "BuffEffect": {
    "type": "HurtFriend",
    "damRatio": {
      "a": 0.02,
      "b": 0.1,
      "c": 183081,
      "type": 5020
    }
  },
  "BuffStateID": 135100
}

Enemy

{
  "id": 135101,
  "BuffName": "Heart of Darkness (Rune)",
  "BuffRate": {
    "Odds": {
      "a": 183082,
      "type": 5000
    }
  },
  "BuffEffect": {
    "id": [
      135102
    ],
    "Odds": 100,
    "type": "AddBuff"
  }
}

Enemy

{
  "id": 135102,
  "BuffDesc": "Fear: free of control",
  "BuffIcon": "skillbuff_2349001",
  "BuffName": "Heart of Darkness (Fear)",
  "BuffRate": {
    "Odds": {
      "a": 100,
      "b": 0,
      "type": 170
    }
  },
  "BuffType": {
    "isgain": 0,
    "isdisperse": 1
  },
  "IconType": 1,
  "BuffEffect": {
    "type": "StatusChange",
    "FearRun": 1,
    "NoSkill": 1,
    "AttrEffect": [
      3,
      4
    ],
    "StateEffect": "8_Fear"
  },
  "BuffStateID": 133560
}

Enemy

{
  "id": 135103,
  "BuffName": "Heart of Darkness (Deal Damage to oneself)",
  "BuffRate": {
    "Odds": {
      "a": 0,
      "b": 100,
      "c": 21830190,
      "type": 5040
    }
  },
  "BuffEffect": {
    "type": "HurtSelf"
  }
}

Formula

{
  "CD": 24,
  "id": 2349010,
  "Buff": {
    "enemy": [
      135100,
      135101,
      135103
    ]
  },
  "Cost": 1,
  "Desc": [
    {
      "id": 2349000,
      "params": [
        30,
        12
      ]
    }
  ],
  "Icon": "skill_2349001",
  "Camps": "Enemy",
  "Level": 10,
  "Logic": "SkillLockedTarget",
  "DescId": "##1216521",
  "NameZh": "##1190077",
  "CastAct": "skill_ready2",
  "DelayCD": 2,
  "Fire_EP": 3,
  "SE_cast": "Skill/Magic_cast",
  "ItemCost": [
    {
      "id": 12903,
      "count": 2100
    }
  ],
  "Pvp_buff": {
    "enemy": [
      135100,
      135101,
      135103
    ]
  },
  "AttackAct": [
    "use_skill2"
  ],
  "Attack_EP": 2,
  "Lead_Type": {
    "CCT": 1,
    "FCT": 5,
    "type": 2
  },
  "SE_attack": "Skill/Chronomancer_chongdong",
  "SkillCost": {
    "sp": 300
  },
  "SkillType": "Buff",
  "Target_EP": 3,
  "Launch_Range": 6,
  "ExtraMaxLevel": 1
}