Light of Stars
Lvl: 5 Attack Physical Range: 5

When receiving physical attacks, there's a 50% chance of shooting a star to the target and deals DMG (ATK x600%). In addition, reduces their Hit by 50. Lasts 5 seconds.

Lvl: 4 Attack Physical Range: 5
• When receiving physical attacks, there's a 40% chance of shooting a star to the target and deals DMG (ATK x500%). In addition, reduces their Hit by 40. Lasts 5 seconds.
Lvl: 3 Attack Physical Range: 5
• When receiving physical attacks, there's a 30% chance of shooting a star to the target and deals DMG (ATK x400%). In addition, reduces their Hit by 30. Lasts 5 seconds.
Lvl: 2 Attack Physical Range: 5
• When receiving physical attacks, there's a 20% chance of shooting a star to the target and deals DMG (ATK x300%). In addition, reduces their Hit by 20. Lasts 5 seconds.
Lvl: 1 Attack Physical Range: 5
• When receiving physical attacks, there's a 10% chance of shooting a star to the target and deals DMG (ATK x200%). In addition, reduces their Hit by 10. Lasts 5 seconds.

Formula

function CommonFun.calcDamage_4501(srcUser, targetUser, params, damageParam, logger)
  local Str = srcUser:GetProperty("Str")
  local Dex = srcUser:GetProperty("Dex")
  local Luk = srcUser:GetProperty("Luk")
  local Atk = srcUser:GetProperty("Atk")
  local AtkPer = srcUser:GetProperty("AtkPer")
  local DamIncrease = srcUser:GetProperty("DamIncrease")
  local IgnoreDef = 0
  local IgnoreDef1 = srcUser:GetProperty("IgnoreDef")
  local IgnoreDef2 = srcUser:GetProperty("IgnoreEquipDef")
  if targetUser.boss or targetUser.mini then
    IgnoreDef = IgnoreDef1
  else
    IgnoreDef = IgnoreDef1 + IgnoreDef2
  end
  if 1 <= IgnoreDef then
    IgnoreDef = 1
  end
  local Refine = srcUser:GetProperty("Refine")
  local AttrEffect = targetUser:GetProperty("AttrEffect")
  local bits = CommonFun.getBits(AttrEffect)
  local Def2 = targetUser:GetProperty("Def")
  local DefPer2 = targetUser:GetProperty("DefPer")
  local Vit2 = targetUser:GetProperty("Vit")
  local VitPer2 = targetUser:GetProperty("VitPer")
  local DamReduc2 = CommonFun.calcDamReDuc(srcUser, targetUser)
  local LongRangeDamReduc2 = targetUser:GetProperty("LongRangeDamReduc")
  local RefineDamReduc = targetUser:GetProperty("RefineDamReduc")
  local damChangePer = damageParam.damChangePer
  local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
  local bodyparam = CommonFun.CalcBodyParam(srcUser, targetUser, params, damageParam, logger)
  local elementparam = CommonFun.CalcElementParam(srcUser, targetUser, params, damageParam, logger)
  local bossparam = CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger)
  local raceparam2 = CommonFun.CalcRaceParam2(srcUser, targetUser, params, damageParam, logger)
  local bodyparam2 = CommonFun.CalcBodyParam2(srcUser, targetUser, params, damageParam, logger)
  local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
  local bossparam2 = CommonFun.CalcBossParam2(srcUser, targetUser, params, damageParam, logger)
  local BaseAtk = Dex * 2 + math.floor(Dex * Dex / 100) + math.floor(Str / 5) + math.floor(Luk / 5)
  local AtkFinal = ((Atk - BaseAtk) * (1 + AtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * bodyparam * elementparam * elementparam2 + BaseAtk) * raceparam * bossparam * bossparam2
  local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
  local A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 + DamIncrease - LongRangeDamReduc2) * (1 - RefineDamReduc) - Vit2 * (1 + VitPer2)
  if A <= 1 then
    return 1
  end
  return A
end

Enemy

{
  "id": 131020,
  "BuffDesc": "Decrease Hit",
  "BuffIcon": "skillbuff_commonbuff",
  "BuffName": "Light of Stars(Blind)",
  "BuffRate": {
    "Odds": 100
  },
  "BuffType": {
    "isgain": 0,
    "isdisperse": 1
  },
  "IconType": 1,
  "BuffEffect": {
    "Cri": {
      "a": 4021,
      "b": -5,
      "c": 0,
      "type": 8
    },
    "Hit": {
      "a": -10,
      "b": 0,
      "type": 1
    },
    "type": "AttrChange",
    "CriRes": {
      "a": 4021,
      "b": -5,
      "c": 0,
      "type": 8
    }
  },
  "BuffStateID": 131020
}

Formula

{
  "id": 408005,
  "Buff": {
    "enemy": [
      131020
    ]
  },
  "Cost": 0,
  "Desc": [
    {
      "id": 4002000,
      "params": [
        50,
        600,
        50
      ]
    }
  ],
  "Icon": "skill_4002001",
  "Camps": "Enemy",
  "Level": 1,
  "Logic": "SkillLockedTarget",
  "Damage": [
    {
      "type": 4501,
      "damChangePer": 6
    }
  ],
  "DescId": "##171560",
  "NameZh": "##159032",
  "CastAct": "skill_ready",
  "DamTime": {
    "type": 1,
    "value": 1
  },
  "Fire_EP": 6,
  "Pvp_buff": {
    "enemy": [
      131020
    ]
  },
  "RollType": 1,
  "AttackAct": [
    "use_skill"
  ],
  "Attack_EP": 3,
  "SkillType": "Attack",
  "Target_EP": 3,
  "Logic_Param": {
    "emit": {
      "type": 1,
      "speed": 60,
      "effect": "Eff_MeteorPulse_bullet",
      "single_fire": false
    }
  },
  "Launch_Range": 5
}