Wish Flower
Lvl: 10 Follow Physical CD: 10 sec Skill Delay: 1.5 sec SP: 300 Range: 6

Khalitzburg charges at an enemy, becomes invisible for 2s and attacks the enemy 7 times, each attack dealing P.DMG equal to (P.ATK+M.ATK)*1800%. A 30% chance to inflict [Cursed] on the enemy. Stacks up to 3 times. For every 1 point of AGI she has, deals 1% more DMG. Up to 300%. When [Wish Flower] is in effect, auto picks up [Rose Petals] nearby. The cooldown is fixed.

Lvl: 9 Follow Physical CD: 10 sec Skill Delay: 1.5 sec SP: 300 Range: 6
• Khalitzburg charges at an enemy, becomes invisible for 2s and attacks the enemy 7 times, each attack dealing P.DMG equal to (P.ATK+M.ATK)*1680%. A 30% chance to inflict [Cursed] on the enemy. Stacks up to 3 times. For every 1 point of AGI she has, deals 1% more DMG. Up to 300%. When [Wish Flower] is in effect, auto picks up [Rose Petals] nearby. The cooldown is fixed.
Lvl: 8 Follow Physical CD: 10 sec Skill Delay: 1.5 sec SP: 300 Range: 6
• Khalitzburg charges at an enemy, becomes invisible for 2s and attacks the enemy 7 times, each attack dealing P.DMG equal to (P.ATK+M.ATK)*1560%. A 30% chance to inflict [Cursed] on the enemy. Stacks up to 3 times. For every 1 point of AGI she has, deals 1% more DMG. Up to 300%. When [Wish Flower] is in effect, auto picks up [Rose Petals] nearby. The cooldown is fixed.
Lvl: 7 Follow Physical CD: 10 sec Skill Delay: 1.5 sec SP: 300 Range: 6
• Khalitzburg charges at an enemy, becomes invisible for 2s and attacks the enemy 7 times, each attack dealing P.DMG equal to (P.ATK+M.ATK)*1440%. A 30% chance to inflict [Cursed] on the enemy. Stacks up to 3 times. For every 1 point of AGI she has, deals 1% more DMG. Up to 300%. When [Wish Flower] is in effect, auto picks up [Rose Petals] nearby. The cooldown is fixed.
Lvl: 6 Follow Physical CD: 10 sec Skill Delay: 1.5 sec SP: 300 Range: 6
• Khalitzburg charges at an enemy, becomes invisible for 2s and attacks the enemy 7 times, each attack dealing P.DMG equal to (P.ATK+M.ATK)*1320%. A 30% chance to inflict [Cursed] on the enemy. Stacks up to 3 times. For every 1 point of AGI she has, deals 1% more DMG. Up to 300%. When [Wish Flower] is in effect, auto picks up [Rose Petals] nearby. The cooldown is fixed.
Lvl: 5 Follow Physical CD: 10 sec Skill Delay: 1.5 sec SP: 300 Range: 6
• Khalitzburg charges at an enemy, becomes invisible for 2s and attacks the enemy 7 times, each attack dealing P.DMG equal to (P.ATK+M.ATK)*1200%. A 30% chance to inflict [Cursed] on the enemy. Stacks up to 3 times. For every 1 point of AGI she has, deals 1% more DMG. Up to 300%. When [Wish Flower] is in effect, auto picks up [Rose Petals] nearby. The cooldown is fixed.
Lvl: 4 Follow Physical CD: 10 sec Skill Delay: 1.5 sec SP: 300 Range: 6
• Khalitzburg charges at an enemy, becomes invisible for 2s and attacks the enemy 7 times, each attack dealing P.DMG equal to (P.ATK+M.ATK)*1080%. A 30% chance to inflict [Cursed] on the enemy. Stacks up to 3 times. For every 1 point of AGI she has, deals 1% more DMG. Up to 300%. When [Wish Flower] is in effect, auto picks up [Rose Petals] nearby. The cooldown is fixed.
Lvl: 3 Follow Physical CD: 10 sec Skill Delay: 1.5 sec SP: 300 Range: 6
• Khalitzburg charges at an enemy, becomes invisible for 2s and attacks the enemy 7 times, each attack dealing P.DMG equal to (P.ATK+M.ATK)*960%. A 30% chance to inflict [Cursed] on the enemy. Stacks up to 3 times. For every 1 point of AGI she has, deals 1% more DMG. Up to 300%. When [Wish Flower] is in effect, auto picks up [Rose Petals] nearby. The cooldown is fixed.
Lvl: 2 Follow Physical CD: 10 sec Skill Delay: 1.5 sec SP: 300 Range: 6
• Khalitzburg charges at an enemy, becomes invisible for 2s and attacks the enemy 7 times, each attack dealing P.DMG equal to (P.ATK+M.ATK)*840%. A 30% chance to inflict [Cursed] on the enemy. Stacks up to 3 times. For every 1 point of AGI she has, deals 1% more DMG. Up to 300%. When [Wish Flower] is in effect, auto picks up [Rose Petals] nearby. The cooldown is fixed.
Lvl: 1 Follow Physical CD: 10 sec Skill Delay: 1.5 sec SP: 300 Range: 6
• Khalitzburg charges at an enemy, becomes invisible for 2s and attacks the enemy 7 times, each attack dealing P.DMG equal to (P.ATK+M.ATK)*720%. A 30% chance to inflict [Cursed] on the enemy. Stacks up to 3 times. For every 1 point of AGI she has, deals 1% more DMG. Up to 300%. When [Wish Flower] is in effect, auto picks up [Rose Petals] nearby. The cooldown is fixed.

Formula

function CommonFun.calcDamage_72501(srcUser, targetUser, params, damageParam, logger)
  local Str = srcUser:GetProperty("Str")
  local Vit = srcUser:GetProperty("Vit")
  local Dex = srcUser:GetProperty("Dex")
  local Luk = srcUser:GetProperty("Luk")
  local Int = srcUser:GetProperty("Int")
  local Agi = srcUser:GetProperty("Agi")
  local Atk = srcUser:GetProperty("Atk")
  local AtkPer = srcUser:GetProperty("AtkPer")
  local MAtk = srcUser:GetProperty("MAtk")
  local MAtkPer = srcUser:GetProperty("MAtkPer")
  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 MRefine = srcUser:GetProperty("MRefine")
  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 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 = Str * 2 + math.floor(Str * Str / 100) + math.floor(Dex / 5) + math.floor(Luk / 5)
  local AtkFinal = ((Atk - BaseAtk) * (1 + AtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * bodyparam * elementparam * elementparam2 + BaseAtk) * raceparam * bossparam * bossparam2
  local BaseMAtk = Int + math.floor(Int * Int / 100)
  local MAtkFinal = ((MAtk - BaseMAtk) * (1 + MAtkPer) * elementparam * elementparam2 + BaseMAtk) * raceparam * bossparam * bossparam2
  local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
  local ShortRangeDamReduc2 = targetUser:GetProperty("ShortRangeDamReduc")
  local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
  if skillID == 2831_SAINT:WISH_FLOWER then
    damChangePer = damChangePer * (1 + math.min(Agi, 300) / 100)
    local GemValue = srcUser:GetGemValue(212111_WISH_FLOWER_DEALS_PERCENTAGE_MORE_DMG_TO_ENEMIES_IN_DOOM_OR_OTHERSHORE_DOOM_STATE)
    if targetUser:HasBuffID(138701_DOOM_:MAX_STACK_0) or targetUser:HasBuffID(138730_OTHERSHORE_DOOM_:MAX_STACK_0) then
      damChangePer = damChangePer * (1 + GemValue / 100000)
    end
  end
  if skillID == 2842_SAINT:FALLING_PETALS then
    local skilllv = srcUser:GetLernedSkillLevel(2827_SAINT:MEMORY_OF_PETALS)
    damChangePer = 1.6 * skilllv + 5.6
  end
  local A = ((AtkFinal + MAtkFinal) * DefReduc * (1 - DamReduc2) + Refine + MRefine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - ShortRangeDamReduc2) - Vit2 * (1 + VitPer2)
  if srcUser:HasBuffID(138660_FATAL_RAPIER_:MAX_STACK_0) then
    local GemValue = srcUser:GetGemValue(212151_FLOWER_OF_DESPERATION_GRANTS_YOUR_SKILLS_A_PERCENTAGE_CHANCE_TO_LAND_CRITICAL_ATTACKS_THAT_DEAL_200_DMG)
    if CommonFun.IsInRate(GemValue / 1000, srcUser:GetRandom()) then
      return A * 2, CommonFun.DamageType.Crit
    end
  end
  if A <= 1 then
    return 1
  end
  return A
end

Enemy

{
  "id": 138724,
  "BuffDesc": "Curse: Decrease Atk, Move Speed, Luck",
  "BuffIcon": "skillbuff_2831001",
  "BuffName": "Flowers blooming under the sword (curse)",
  "BuffRate": {
    "Odds": {
      "a": 0,
      "b": 30,
      "type": 180
    }
  },
  "BuffType": {
    "isgain": 0,
    "isdisperse": 1
  },
  "IconType": 1,
  "BuffEffect": {
    "Luk": -10,
    "type": "StatusChange",
    "AtkPer": -0.15,
    "MoveSpdPer": -0.25,
    "StateEffect": "11_Curse",
    "limit_layer": 3
  }
}

Enemy

{
  "id": 138725,
  "BuffName": "Blooming flowers under the sword (special effect)",
  "BuffRate": {
    "Odds": 100
  },
  "BuffEffect": {
    "type": "AttrChange"
  },
  "BuffStateID": 138725
}

Formula

{
  "CD": 10,
  "id": 2831010,
  "Buff": {
    "enemy": [
      138724,
      138725
    ]
  },
  "Cost": 1,
  "Desc": [
    {
      "id": 2831000,
      "params": [
        1800
      ]
    }
  ],
  "Icon": "skill_2831001",
  "Camps": "Enemy",
  "FixCD": 1,
  "Level": 10,
  "Logic": "SkillLockedTarget",
  "Damage": [
    {
      "type": 72501,
      "damChangePer": 18
    }
  ],
  "DescId": "##40858940",
  "NameZh": "##3464121",
  "SE_hit": "Skill/sfx_skill_kalisige_normalattack_hit_01",
  "DamTime": {
    "type": 1,
    "value": 2
  },
  "DelayCD": 1.5,
  "Fire_EP": 3,
  "SE_cast": "Skill/sfx_skill_kalisige_qiwangzhihua_attack_01",
  "Pvp_buff": {
    "enemy": [
      138724,
      138725
    ]
  },
  "RollType": 1,
  "AttackAct": [
    "use_skill5"
  ],
  "Attack_EP": 3,
  "Lead_Type": {
    "DCT": 2.2,
    "type": 4
  },
  "SkillCost": {
    "sp": 300
  },
  "SkillType": "Follow",
  "Target_EP": 2,
  "DamageType": 1,
  "Logic_Param": {
    "count": 7,
    "interval": 0.3,
    "chant_buff": [
      138720,
      138721,
      138722,
      138723
    ],
    "force_no_break": 1
  },
  "Launch_Range": 6
}