Heaven's Justice
Lvl: 2 Attack Magic Skill Delay: 5 sec Range: 6 Fixed Cast Time: 4

Channels lightning strikes, dealing (M.Atk*300%) wind M.Dmg to all enemies in the target area and knocking them back. Has a 40% chance to blind them. The skill takes effects for up to 4 times

Lvl: 1 Attack Magic Skill Delay: 5 sec Range: 6 Fixed Cast Time: 3
• Channels lightning strikes, dealing (M.Atk*300%) wind M.Dmg to all enemies in the target area and knocking them back. Has a 40% chance to blind them. The skill takes effects for up to 4 times

Formula

function CommonFun.calcDamage_8001(srcUser, targetUser, params, damageParam, logger)
  local damChangePer = damageParam.damChangePer
  local damChangePer1 = damageParam.damChangePer1
  local MaxHp = targetUser:GetProperty("MaxHp")
  local A = MaxHp * damChangePer + damChangePer1
  if A <= 1 then
    return 1
  end
  return A
end

Enemy

{
  "id": 85080,
  "BuffDesc": "Darkness: Decrease Flee & Hit",
  "BuffIcon": "skillbuff_82001",
  "BuffName": "Lord of Vermilion [Darkness]",
  "BuffRate": {
    "Odds": {
      "a": 4,
      "b": 0,
      "type": 186
    }
  },
  "BuffType": {
    "isgain": 0,
    "isdisperse": 1
  },
  "IconType": 1,
  "BuffEffect": {
    "type": "StatusChange",
    "HitPer": -0.5,
    "FleePer": -0.5,
    "AttrEffect3": [
      17
    ],
    "StateEffect": "12_Dark"
  }
}

Formula

{
  "id": 70029002,
  "Buff": {
    "enemy": [
      85080
    ]
  },
  "Cost": 1,
  "Desc": [
    {
      "id": 82000,
      "params": [
        300,
        40,
        4
      ]
    }
  ],
  "Icon": "skill_107001",
  "Camps": "Enemy",
  "Level": 1,
  "Logic": "SkillPointRange",
  "Damage": [
    {
      "type": 8001,
      "damChangePer": 0.25,
      "damChangePer1": 0
    }
  ],
  "DescId": "##170913",
  "NameZh": "##169668",
  "SE_hit": "Common/enemy_hit_1-Common/enemy_hit_2-Common/enemy_hit_3-Common/enemy_hit_4",
  "CastAct": "reading",
  "DamTime": {
    "type": 1,
    "value": 10
  },
  "DelayCD": 5,
  "Fire_EP": 3,
  "SE_cast": "Common/Magic_cast",
  "Pvp_buff": {
    "enemy": [
      85080
    ]
  },
  "RollType": 2,
  "AttackAct": [
    "use_magic"
  ],
  "Attack_EP": 3,
  "Lead_Type": {
    "CCT": 4,
    "FCT": 0,
    "type": 2
  },
  "SE_attack": "Skill/LordOfVermilion",
  "SkillType": "Attack",
  "Target_EP": 2,
  "Logic_Param": {
    "loop": false,
    "count": 4,
    "range": 3,
    "effect": "LordOfVermilion,LowRange_B2",
    "interval": 1,
    "no_select": 1,
    "isCountTrap": 1
  },
  "Launch_Range": 6
}