SkillSpiritual Curse
Spiritual Curse
Lvl: 1
Attack
Magic
CD: 2 sec
Skill Delay: 1 sec
Range: 6
Fixed Cast Time: 1
Deals (Atk100%) Dmg to the target
Lvl: 1
Attack
Magic
CD: 2 sec
Skill Delay: 1 sec
Range: 6
Fixed Cast Time: 1
Deals (Atk100%) Dmg to the target

Formula
function CommonFun.calcDamage_18301(srcUser, targetUser, params, damageParam, logger)
  local Luk = srcUser:GetProperty("Luk")
  local Int = srcUser:GetProperty("Int")
  local Vit = srcUser:GetProperty("Vit")
  local MAtk = srcUser:GetProperty("MAtk")
  local MAtkPer = srcUser:GetProperty("MAtkPer")
  local MDamIncrease = CommonFun.calcMDamIncrease(srcUser, targetUser)
  local IgnoreMDef = srcUser:GetProperty("IgnoreMDef")
  if 1 <= IgnoreMDef then
    IgnoreMDef = 1
  end
  local RangeDam = srcUser:GetProperty("RangeDam")
  local MRefine = srcUser:GetProperty("MRefine")
  local srcAtkElement = CommonFun.GetUserAtkAttr(srcUser, params, damageParam)
  local targetDefElement = targetUser:GetProperty("DefAttr")
  local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
  local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
  local raceparam2 = CommonFun.CalcRaceParam2(srcUser, targetUser, params, damageParam, logger)
  local bossparam = CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger)
  local bossparam2 = CommonFun.CalcBossParam2(srcUser, targetUser, params, damageParam, logger)
  local bodyparam = 1
  local skilllv_tx = srcUser:GetLernedSkillLevel(2325_:WEIGHT_OF_SOUL)
  if 0 < skilllv_tx then
    bodyparam = CommonFun.CalcBodyParam(srcUser, targetUser, params, damageParam, logger)
  end
  local MDef2 = targetUser:GetProperty("MDef")
  local MDefPer2 = targetUser:GetProperty("MDefPer")
  local Vit2 = targetUser:GetProperty("Vit")
  local VitPer2 = targetUser:GetProperty("VitPer")
  local Int2 = targetUser:GetProperty("Int")
  local IntPer2 = targetUser:GetProperty("IntPer")
  local MDamReduc2 = CommonFun.calcMDamReDuc(srcUser, targetUser)
  local RefineMDamReduc = targetUser:GetProperty("RefineMDamReduc")
  local damChangePer = damageParam.damChangePer
  local BaseMAtk = Int + math.floor(Int * Int / 100)
  local MAtkFinal = ((MAtk - BaseMAtk) * (1 + MAtkPer) + BaseMAtk) * raceparam * bossparam * bossparam2 * bodyparam
  local MDefReduc = CommonFun.CalcMDef(srcUser, targetUser)
  local skilllv_xl = srcUser:GetLernedSkillLevel(2303_:MIND_PIERCE)
  local Num1 = srcUser:GetRunePoint(183014_AESIR_MIND_PIERCE_ADDITIONALLY_CALCULATES_10_POINTS_OF_LUCK_EFFECT)
  local Num2 = srcUser:GetRunePoint(183015_AESIR_MIND_PIERCE_S_TRUE_DMG_5)
  local RealDam = (Luk + Num1 * 10) * skilllv_xl * 20 * (1 + Num2 * 0.05)
  local SoulDam = 1
  local skilllv_soul = srcUser:GetLernedSkillLevel(2330_:SOUL_HUNTER)
  if targetUser:GetBuffEffectByType("PositiveSoul") or targetUser:GetBuffEffectByType("NegativeSoul") then
    SoulDam = 1 + skilllv_soul * 0.06
  end
  local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
  if skillID == 2301_:SOUL_IMPACT then
    local count = params.hitedCount
    local Num = srcUser:GetRunePoint(183009_AESIR_SOUL_IMPACT_S_DMG_10)
    local GemValue = srcUser:GetGemValue(183161_SOUL_IMPACT_DMG_PERCENTAGE)
    damChangePer = damChangePer * (1 + count * 0.5) * (1 + Num * 0.1) * (1 + GemValue / 100000)
  end
  if skillID == 2344_:ESKA then
    local skilllv_he = srcUser:GetLernedSkillLevel(2365_:ESKA_ENHANCE)
    damChangePer = damChangePer * (1 + skilllv_he * 0.05)
  end
  if skillID == 2320_:SPIRITUAL_CURSE then
    local Num = srcUser:GetRunePoint(183034_AESIR_SPIRITUAL_CURSE_DMG_6)
    local GemValue = srcUser:GetGemValue(183101_SPIRITUAL_CURSE_DMG_PERCENTAGE)
    damChangePer = damChangePer * (1 + Num * 0.06) * (1 + GemValue / 100000)
  end
  local A = (((MAtkFinal * MDefReduc * (1 - MDamReduc2) + MRefine) * damChangePer + RealDam) * (1 - RefineMDamReduc) * (1 + MDamIncrease) * CommonFun.calcMagicElement(srcUser, targetUser, params, damageParam) * elementparam2 - Vit2 / 2 * (1 + VitPer2) - Int2 * (1 + IntPer2)) * (1 + RangeDam) * SoulDam
  if A <= 1 then
    return 1
  end
  return A
end
Buff Raw
Enemy
{
  "id": 135370,
  "BuffDesc": "Reduce M.Def",
  "BuffIcon": "skillbuff_2320001",
  "BuffName": "Spiritual Curse (Reduce M. DEF)",
  "BuffRate": {
    "Odds": {
      "a": 183102,
      "type": 5000
    }
  },
  "BuffType": {
    "isgain": 0,
    "isdisperse": 1
  },
  "IconType": 1,
  "BuffEffect": {
    "type": "AttrChange",
    "MDefPer": {
      "a": 0,
      "b": 0,
      "c": 183102,
      "type": 5020
    }
  }
}
Raw
{
  "CD": 2,
  "id": 10183001,
  "Buff": {
    "enemy": [
      135370
    ]
  },
  "Cost": 0,
  "Desc": [
    {
      "id": 10000,
      "params": [
        100
      ]
    }
  ],
  "Icon": "skill_10000",
  "Camps": "Enemy",
  "Level": 1,
  "Logic": "SkillPointRange",
  "Damage": [
    {
      "type": 18301,
      "damChangePer": 3,
      "elementparam": 7
    }
  ],
  "DescId": "##170630",
  "NameZh": "##1190848",
  "CastAct": "reading",
  "DamTime": {
    "type": 1,
    "value": 2
  },
  "DelayCD": 1,
  "Fire_EP": 3,
  "Pvp_buff": {
    "enemy": [
      135370
    ]
  },
  "RollType": 2,
  "AttackAct": [
    "use_magic"
  ],
  "Attack_EP": 3,
  "Lead_Type": {
    "CCT": 1,
    "FCT": 0,
    "type": 2
  },
  "SkillType": "Attack",
  "Target_EP": 2,
  "Logic_Param": {
    "loop": false,
    "count": 1,
    "range": 4,
    "effect": "BurstOperation,LowRange_B2",
    "interval": 1,
    "no_select": 1,
    "isCountTrap": 1
  },
  "Launch_Range": 6
}