Quicksand Vortex
Lvl: 10 Attack Magic CD: 4.5 sec Skill Delay: 1.5 sec SP: 140 Range: 5 Cast Time: 8 Fixed Cast Time: 0.2

Create a Quicksand Vortex. Cause Water Magic (M.Atk x540%) and Earth M.DMG (M.Atk x750%) to all enemies in the range. Lasts 20 seconds. Up to 2

Lvl: 9 Attack Magic CD: 4.5 sec Skill Delay: 1.5 sec SP: 132 Range: 5 Cast Time: 8 Fixed Cast Time: 0.2
• Create a Quicksand Vortex. Cause Water Magic (M.Atk x510%) and Earth M.DMG (M.Atk x700%) to all enemies in the range. Lasts 20 seconds. Up to 2
Lvl: 8 Attack Magic CD: 4.5 sec Skill Delay: 1.5 sec SP: 124 Range: 5 Cast Time: 8 Fixed Cast Time: 0.2
• Create a Quicksand Vortex. Cause Water Magic (M.Atk x480%) and Earth M.DMG (M.Atk x650%) to all enemies in the range. Lasts 20 seconds. Up to 2
Lvl: 7 Attack Magic CD: 4.5 sec Skill Delay: 1.5 sec SP: 116 Range: 5 Cast Time: 8 Fixed Cast Time: 0.2
• Create a Quicksand Vortex. Cause Water Magic (M.Atk x450%) and Earth M.DMG (M.Atk x600%) to all enemies in the range. Lasts 20 seconds. Up to 2
Lvl: 6 Attack Magic CD: 4.5 sec Skill Delay: 1.5 sec SP: 108 Range: 5 Cast Time: 8 Fixed Cast Time: 0.2
• Create a Quicksand Vortex. Cause Water Magic (M.Atk x420%) and Earth M.DMG (M.Atk x550%) to all enemies in the range. Lasts 20 seconds. Up to 2
Lvl: 5 Attack Magic CD: 4.5 sec Skill Delay: 1.5 sec SP: 100 Range: 5 Cast Time: 8 Fixed Cast Time: 0.2
• Create a Quicksand Vortex. Cause Water Magic (M.Atk x390%) and Earth M.DMG (M.Atk x500%) to all enemies in the range. Lasts 20 seconds. Up to 1
Lvl: 4 Attack Magic CD: 4.5 sec Skill Delay: 1.5 sec SP: 92 Range: 5 Cast Time: 8 Fixed Cast Time: 0.2
• Create a Quicksand Vortex. Cause Water Magic (M.Atk x360%) and Earth M.DMG (M.Atk x450%) to all enemies in the range. Lasts 20 seconds. Up to 1
Lvl: 3 Attack Magic CD: 4.5 sec Skill Delay: 1.5 sec SP: 84 Range: 5 Cast Time: 8 Fixed Cast Time: 0.2
• Create a Quicksand Vortex. Cause Water Magic (M.Atk x330%) and Earth M.DMG (M.Atk x400%) to all enemies in the range. Lasts 20 seconds. Up to 1
Lvl: 2 Attack Magic CD: 4.5 sec Skill Delay: 1.5 sec SP: 76 Range: 5 Cast Time: 8 Fixed Cast Time: 0.2
• Create a Quicksand Vortex. Cause Water Magic (M.Atk x300%) and Earth M.DMG (M.Atk x350%) to all enemies in the range. Lasts 20 seconds. Up to 1
Lvl: 1 Attack Magic CD: 4.5 sec Skill Delay: 1.5 sec SP: 68 Range: 5 Cast Time: 8 Fixed Cast Time: 0.2
• Create a Quicksand Vortex. Cause Water Magic (M.Atk x270%) and Earth M.DMG (M.Atk x300%) to all enemies in the range. Lasts 20 seconds. Up to 1

Formula

function CommonFun.calcDamage_32(srcUser, targetUser, params, damageParam, logger)
  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 MRefine = srcUser:GetProperty("MRefine")
  local RangeDam = srcUser:GetProperty("RangeDam")
  local srcAtkElement = CommonFun.GetUserAtkAttr(srcUser, targetUser, 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 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
  local MDefReduc = CommonFun.CalcMDef(srcUser, targetUser)
  local BaseLvDamage = 0
  local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
  if skillID == 93_KNIGHT:HEAVEN_S_DRIVE_KNIGHT:HEAVEN_S_DRIVE or skillID == 1483_GUILLOTINE_CROSS:HEAVEN_S_DRIVE then
    local IBaseLv = srcUser.BaseLv
    if srcUser:HasBuffID(42110_FLUORESCENCE_:MAX_STACK_0) then
      BaseLvDamage = IBaseLv * 15
    end
  end
  if skillID == 1482_GUILLOTINE_CROSS:STORM_GUST_GUILLOTINE_CROSS:STORM_GUST then
    local IBaseLv1 = srcUser.BaseLv
    if srcUser:HasBuffID(42110_FLUORESCENCE_:MAX_STACK_0) then
      BaseLvDamage = IBaseLv1 * 15
    end
    local GemValue = srcUser:GetGemValue(143161_STORM_GUST_DMG_PERCENTAGE)
    damChangePer = damChangePer * (1 + GemValue / 100000)
  end
  local CardXR = 1
  local CardNum = srcUser:GetEquipCardNum(7, 23048_HILL_WIND_CARD)
  local CardNum2 = srcUser:GetEquipCardNum(7, 24664_HILL_WIND_STAR_CARD)
  CardNum = CardNum + CardNum2
  if skillID == 82_SWORDSMAN:LORD_OF_VERMILION_SWORDSMAN:LORD_OF_VERMILION then
    CardXR = CardNum * 0.25 + 1
  end
  if skillID == 1939_SNIPER:MAGIC_WIND_JELLYFISH_SUMMON_SNIPER:MAGIC_WIND_JELLYFISH_SUMMON then
    local skilllv_mf = srcUser:GetLernedSkillLevel(1933_SNIPER:DIM_WIND)
    damChangePer = (skilllv_mf * 0.8 + 8.8) * 0.8
  end
  local A = ((MAtkFinal * MDefReduc * (1 - MDamReduc2) + MRefine) * (1 - RefineMDamReduc) * damChangePer * (1 + MDamIncrease) * CommonFun.calcMagicElement(srcUser, targetUser, params, damageParam) * elementparam2 - Vit2 / 2 * (1 + VitPer2) - Int2 * (1 + IntPer2)) * (1 + RangeDam) * CardXR + BaseLvDamage
  local Num1 = srcUser:GetRunePoint(143014_AESIR_STORM_GUST_DMG_7)
  if skillID == 81_SWORDSMAN:STORM_GUST or skillID == 1482_GUILLOTINE_CROSS:STORM_GUST_GUILLOTINE_CROSS:STORM_GUST or skillID == 1904_HUNTER:STORM_GUST then
    if srcUser:HasBuffID(52170_STORMY_KNIGHT_CARD_:MAX_STACK_0) and srcUser:HasBuffID(81000040_STORMY_KNIGHT_CARD_DEPOSITE_:MAX_STACK_0) then
      A = A * 1.2
    end
    if srcUser:HasBuffID(53290_MARTIN_SCAVENGER_CARD_:MAX_STACK_0) then
      A = A * 1.05
    end
    if 0 < Num1 then
      A = A * (Num1 * 0.07 + 1)
    end
    local GemValue1 = srcUser:GetGemValue(21073_STORM_GUST_DMG_PERCENTAGE)
    local GemValue2 = srcUser:GetGemValue(143073_STORM_GUST_DMG_PERCENTAGE)
    A = A * (1 + GemValue1 / 100000 + GemValue2 / 100000)
  end
  if skillID == 1160_THIEF:EARTH_STRAIN then
    local GemValue = srcUser:GetGemValue(21053_EARTH_STRAIN_DMG_PERCENTAGE)
    A = A * (1 + GemValue / 100000)
  end
  if skillID == 82_SWORDSMAN:LORD_OF_VERMILION_SWORDSMAN:LORD_OF_VERMILION then
    local GemValue = srcUser:GetGemValue(21062_LORD_OF_VERMILION_DMG_PERCENTAGE)
    A = A * (1 + GemValue / 100000)
  end
  if skillID == 93_KNIGHT:HEAVEN_S_DRIVE_KNIGHT:HEAVEN_S_DRIVE then
    local GemValue = srcUser:GetGemValue(21092_HEAVEN_S_DRIVE_DMG_PERCENTAGE)
    A = A * (1 + GemValue / 100000)
  end
  if skillID == 3107_WHITESMITH:WIND_BLADE_ADJUDICATION then
    local skilllv_kf = srcUser:GetLernedSkillLevel(3124_WHITESMITH:WIND_BLADE_ADJUDICATION_ENHANCE)
    A = A * (1 + skilllv_kf * 0.05)
  end
  if (skillID == 3111_WHITESMITH:SAND_STORM or skillID == 1933_SNIPER:DIM_WIND or skillID == 1939_SNIPER:MAGIC_WIND_JELLYFISH_SUMMON_SNIPER:MAGIC_WIND_JELLYFISH_SUMMON) and (targetUser:HasBuffID(118140_EARTH_FIELD_:MAX_STACK_0) or targetUser:HasBuffID(125140_QUICKSAND_VORTEX_EMPTY_BUFF_:MAX_STACK_0)) then
    local skilllv_slj = srcUser:GetLernedSkillLevel(3126_WHITESMITH:SAND_STORM_EARTH_ELEMENT)
    local skilllv_mofeng = srcUser:GetLernedSkillLevel(1946_SNIPER:MAGIC_WIND_EARTH_ELEMENT)
    A = A * (1 + skilllv_slj * 0.12 + skilllv_mofeng * 0.12)
  end
  if skillID == 3108_WHITESMITH:QUICKSAND_VORTEX or skillID == 1931_SNIPER:JELLYFISH_SUMMON then
    local GemValue = srcUser:GetGemValue(21141_QUICKSAND_VORTEX_DMG_PERCENTAGE)
    A = A * (1 + GemValue / 100000)
  end
  if A <= 1 then
    return 1
  end
  return A
end

Enemy

{
  "id": 125140,
  "BuffName": "Quicksand Vortex (Empty Buff)",
  "BuffRate": {
    "Odds": 100
  },
  "BuffEffect": {
    "type": "AttrChange"
  }
}

Enemy

{
  "id": 125141,
  "BuffName": "Quicksand Vortex (Water Asphyxia)",
  "BuffRate": {
    "Odds": {
      "a": 0,
      "b": 0,
      "c": 21142,
      "type": 5010
    }
  },
  "BuffEffect": {
    "id": [
      125150,
      125151
    ],
    "type": "AddBuff"
  }
}

Enemy

{
  "id": 125150,
  "BuffDesc": "Reduce Max HP",
  "BuffIcon": "skillbuff_commonbuff",
  "BuffName": "Water Asphyxia",
  "BuffRate": {
    "Odds": {
      "a": 100,
      "b": 0,
      "type": 3070
    }
  },
  "BuffType": {
    "isgain": 0,
    "isdisperse": 1
  },
  "IconType": 1,
  "BuffEffect": {
    "type": "AttrChange",
    "MaxHpPer": {
      "a": 3109,
      "b": -0.04,
      "c": 0,
      "type": 8
    },
    "MaxSpPer": {
      "a": 3109,
      "b": -0.04,
      "c": 20210150,
      "d": 0,
      "type": 6500
    }
  },
  "BuffStateID": 125150
}

Enemy

{
  "id": 125151,
  "BuffName": "Water Asphyxia (Quicksand reduces)",
  "BuffRate": {
    "Odds": {
      "a": 100,
      "b": 0,
      "type": 3070
    }
  },
  "BuffType": {
    "isgain": 0,
    "isdisperse": 1
  },
  "Condition": {
    "type": "HasBuff",
    "buffid": [
      125140
    ]
  },
  "BuffEffect": {
    "type": "AttrChange",
    "MaxHpPer": {
      "a": 3109,
      "b": -0.04,
      "c": 0,
      "type": 8
    },
    "MaxSpPer": {
      "a": 3109,
      "b": -0.04,
      "c": 20210150,
      "d": 0,
      "type": 6500
    }
  }
}

Enemy

{
  "id": 125230,
  "BuffName": "Quicksand Vortex - Struggle",
  "BuffRate": {
    "Odds": {
      "type": 6090
    }
  },
  "BuffEffect": {
    "id": [
      125231
    ],
    "Odds": 100,
    "type": "AddBuff"
  }
}

Enemy

{
  "id": 125231,
  "BuffName": "Quicksand Vortex - Struggle",
  "BuffRate": {
    "Odds": {
      "a": 3125,
      "b": 20,
      "c": 0,
      "type": 8
    }
  },
  "BuffType": {
    "isgain": 0,
    "isdisperse": 1
  },
  "BuffEffect": {
    "type": "MoveHSPChange",
    "HpPer": -0.05
  }
}

Formula

{
  "CD": 4.5,
  "id": 3108010,
  "Buff": {
    "enemy": [
      125140,
      125230,
      125141
    ]
  },
  "Cost": 1,
  "Desc": [
    {
      "id": 3108000,
      "params": [
        540,
        750,
        2
      ]
    }
  ],
  "Icon": "skill_3108001",
  "Camps": "Enemy",
  "Level": 10,
  "Logic": "SkillPointRange",
  "Damage": [
    {
      "type": 32,
      "damChangePer": 7.5,
      "elementparam": 2
    },
    {
      "type": 32,
      "damChangePer": 5.4,
      "elementparam": 3
    }
  ],
  "DescId": "##171126",
  "NameZh": "##169212",
  "CastAct": "reading",
  "DamTime": {
    "type": 1,
    "value": 2
  },
  "DelayCD": 1.5,
  "Fire_EP": 3,
  "SE_cast": "Skill/Magic_cast",
  "ItemCost": [
    {
      "id": 12903,
      "count": 1580
    }
  ],
  "Pvp_buff": {
    "enemy": [
      125140,
      125230,
      125141
    ]
  },
  "RollType": 2,
  "AttackAct": [
    "use_skill15"
  ],
  "Attack_EP": 3,
  "Lead_Type": {
    "CCT": 0.2,
    "FCT": 8,
    "type": 2
  },
  "SE_attack": "Skill/skill_magic_sanddeep_attack",
  "SkillCost": {
    "1": {
      "num": 1,
      "buffID": 116831
    },
    "sp": 140
  },
  "SkillType": "Attack",
  "Target_EP": 2,
  "DamageType": 2,
  "Logic_Param": {
    "count": 20,
    "range": 3,
    "interval": 1,
    "max_count": 2,
    "no_select": 1,
    "isCountTrap": 1,
    "trap_effect": "Eff_QuicksandVortex_floor,LowRange_B2"
  },
  "Launch_Range": 5,
  "ExtraMaxLevel": 0
}