Skill #1272001

Dragon's Water Breath

Level 10

##1272000

CD 1s | Cost 1 | Attack

ID 1272010

Level 9

##1272000

CD 1s | Cost 1 | Attack

ID 1272009

Level 8

##1272000

CD 1s | Cost 1 | Attack

ID 1272008

Level 7

##1272000

CD 1s | Cost 1 | Attack

ID 1272007

Level 6

##1272000

CD 1s | Cost 1 | Attack

ID 1272006

Level 5

##1272000

CD 1s | Cost 1 | Attack

ID 1272005

Level 4

##1272000

CD 1s | Cost 1 | Attack

ID 1272004

Level 3

##1272000

CD 1s | Cost 1 | Attack

ID 1272003

Level 2

##1272000

CD 1s | Cost 1 | Attack

ID 1272002

Level 1

##1272000

CD 1s | Cost 1 | Attack

ID 1272001

Formulas & functions

CommonFun links

Dragon's Water BreathLv 1-10 | buff | Buffs 117760

Formula source

function CommonFun.calcBuff_110(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local FreezeAtk = srcUser:GetProperty("FreezeAtk")
  local FreezeDef2 = targetUser:GetProperty("FreezeDef")
  local FreezeDam = 1 + FreezeAtk - FreezeDef2
  if FreezeDam <= 0 then
    FreezeDam = 0
  end
  local StateAtk = srcUser:GetProperty("StateAtk")
  local StateDef2 = targetUser:GetProperty("StateDef")
  local StateDam = 1 + StateAtk - StateDef2
  if StateDam <= 0 then
    StateDam = 0
  end
  local A = (lv * a + b) * FreezeDam * StateDam * CommonFun.calcAttrFreezeRate(srcUser, targetUser)
  if A <= 0 then
    return 0
  end
  return A
end
Dragon's Water BreathLv 1-10 | buff | Buffs 41201

Formula source

function CommonFun.calcBuff_3490(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local A = 0
  local RefineLv = srcUser:GetEquipedRefineLv(7)
  local Ring1 = srcUser:GetEquipedID(7)
  if (Ring1 == 40047 or Ring1 == 140047) and 10 <= RefineLv then
    A = 100
  end
  return A
end
Dragon's Water BreathLv 1-10 | buff | Buffs 41741

Formula source

function CommonFun.calcBuff_3491(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local A = 0
  local RefineLv = srcUser:GetEquipedRefineLv(7)
  local Ring1 = srcUser:GetEquipedID(7)
  if (Ring1 == 40057 or Ring1 == 140057) and 10 <= RefineLv then
    A = 100
  end
  return A
end
Dragon's Water BreathLv 1-10 | buff | Buffs 1002110, 124161

Formula source

-- Lua source unavailable --
Dragon's Water BreathLv 1-10 | damage

Formula source

function CommonFun.calcDamage_1401(srcUser, targetUser, params, damageParam, logger)
  local Str = srcUser:GetProperty("Str")
  local Dex = srcUser:GetProperty("Dex")
  local Luk = srcUser:GetProperty("Luk")
  local Int = srcUser:GetProperty("Int")
  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 MRefine = srcUser:GetProperty("MRefine")
  local Refine = srcUser:GetProperty("Refine")
  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, params)
  local LongRangeDamReduc2 = targetUser:GetProperty("LongRangeDamReduc")
  local Vit = srcUser:GetProperty("Vit")
  local VitRatio = 1 + Vit / 1000
  local HpFire = 1
  if srcUser:HasBuffID(80220) or srcUser:HasBuffID(80223) then
    HpFire = 1.2
  end
  local skilllv_1 = srcUser:GetLernedSkillLevel(1260)
  local Ride = 1
  if srcUser:HasEquipFeature(1) then
    Ride = 1 + skilllv_1 * 0.05
  end
  local Dragon = 1
  local RefineLv7 = srcUser:GetEquipedRefineLv(7)
  if srcUser:HasBuffID(41200) then
    Dragon = 1 + RefineLv7 * 0.01
  end
  local Dragon1 = 0
  if srcUser:HasBuffID(41200) and 15 <= RefineLv7 then
    Dragon1 = 1
  end
  if srcUser:HasBuffID(41740) then
    Dragon = 1 + RefineLv7 * 0.01
  end
  if srcUser:HasBuffID(41740) and 15 <= RefineLv7 then
    Dragon1 = 2
  end
  local Numxp = srcUser:GetRunePoint(14020)
  local RuneDamage = 1 + Numxp * 0.06
  local card = 1
  if srcUser:HasBuffID(52580) then
    card = 1.1
  end
  local GemValue = srcUser:GetGemValue(11001)
  local GemDam = 1 + GemValue / 100000
  local Sign = 1
  local Num1 = targetUser:GetBuffLayer(117660)
  local fromid = targetUser:GetBuffFromID(117660)
  local guid = srcUser:GetGuid()
  local skilllv_1 = srcUser:GetLernedSkillLevel(1267)
  skilllv_1 = math.min(skilllv_1, 5)
  local GemValue = srcUser:GetGemValue(11131)
  if fromid == guid then
    Sign = 1 + (skilllv_1 * 0.01 + 0.02 + GemValue / 100000) * Num1
  end
  local skilllv_hlx = srcUser:GetLernedSkillLevel(1261)
  local skilllv_slx = srcUser:GetLernedSkillLevel(1272)
  local skilllv_tianlong = srcUser:GetLernedSkillLevel(5210)
  local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
  local tianlong = 1
  if skillID == 5210 then
    damChangePer = skilllv_hlx * 0.5 + 6.6
    tianlong = 2.5 + 0.15 * skilllv_tianlong
  end
  local guanghuan = 1
  if srcUser:HasBuffID(1002100) then
    guanghuan = 1.1 + 0.02 * skilllv_tianlong
  end
  local A = (((AtkFinal + MAtkFinal) * DefReduc * (1 - DamReduc2) + Refine + MRefine) * (damChangePer + Dragon1) * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)) * HpFire * VitRatio * Ride * Dragon * RuneDamage * card * GemDam * Sign * tianlong * guanghuan
  if skillID == 5214 or skillID == 5215 then
    local damChangePer_hlx = skilllv_hlx * 0.5 + 6.6
    local damChangePer_slx = skilllv_slx * 0.5 + 6.6
    local hlx = damageParam.hlx
    local slx = damageParam.slx
    local Dam_hlx = (((AtkFinal + MAtkFinal) * DefReduc * (1 - DamReduc2) + Refine + MRefine) * (damChangePer_hlx + Dragon1) * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)) * HpFire * VitRatio * Ride * Dragon * RuneDamage * card * GemDam * Sign
    local Dam_slx = (((AtkFinal + MAtkFinal) * DefReduc * (1 - DamReduc2) + Refine + MRefine) * (damChangePer_slx + Dragon1) * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)) * HpFire * VitRatio * Ride * Dragon * RuneDamage * card * GemDam * Sign
    local skilllv_tianlong3 = srcUser:GetLernedSkillLevel(5213)
    A = (Dam_hlx * hlx + Dam_slx * slx) * (skilllv_tianlong3 * 0.05 + 0.25) * guanghuan
  end
  if skillID == 3008 or skillID == 3015 then
    local damChangePer_hlx = skilllv_hlx * 0.5 + 6.6
    local damChangePer_slx = skilllv_slx * 0.5 + 6.6
    local hlx = damageParam.hlx
    local slx = damageParam.slx
    local Dam_hlx = (((AtkFinal + MAtkFinal) * DefReduc * (1 - DamReduc2) + Refine + MRefine) * (damChangePer_hlx + Dragon1) * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)) * HpFire * VitRatio * Ride * Dragon * RuneDamage * card * GemDam * Sign
    local Dam_slx = (((AtkFinal + MAtkFinal) * DefReduc * (1 - DamReduc2) + Refine + MRefine) * (damChangePer_slx + Dragon1) * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)) * HpFire * VitRatio * Ride * Dragon * RuneDamage * card * GemDam * Sign
    if skilllv_hlx < 1 then
      Dam_hlx = 0
    end
    if skilllv_slx < 1 then
      Dam_slx = 0
    end
    local skilllv_ml = srcUser:GetLernedSkillLevel(3008)
    local GemValue_lx = srcUser:GetGemValue(11161)
    local Dam_alx = 0
    if 0 < GemValue_lx and hlx == 0 and slx == 0 then
      Dam_alx = (((AtkFinal + MAtkFinal) * DefReduc * (1 - DamReduc2) + Refine + MRefine) * (damChangePer_hlx + Dragon1) * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)) * HpFire * VitRatio * Ride * Dragon * RuneDamage * card * GemDam * Sign
    end
    A = (Dam_hlx * hlx + Dam_slx * slx) * (skilllv_ml * 0.06 + 0.2) + Dam_alx * GemValue_lx / 100000
  end
  local StateEffect = targetUser:GetProperty("StateEffect")
  local bits = CommonFun.getBits(StateEffect)
  local GemState = srcUser:GetGemValue(11002)
  local skilllv_ha = srcUser:GetLernedSkillLevel(3005)
  if bits[CommonFun.StateEffect.Burn] == 1 or bits[CommonFun.StateEffect.Freeze] == 1 then
    A = A * (1 + GemState / 100000)
  end
  if bits[CommonFun.StateEffect.Dark] == 1 then
    A = A * (1 + skilllv_ha * 0.04)
  end
  local enemy = srcUser:IsEnemy(targetUser)
  if enemy == false then
    return 0, CommonFun.DamageType.None
  end
  if A <= 1 then
    return 1
  end
  return A
end

Skill JSON (Level 10)

{
  "id": 1272010,
  "NameZh": "龙之吐息·水",
  "Level": 10,
  "Icon": "skill_1272001",
  "Cost": 1,
  "Desc": [
    {
      "id": 1272000,
      "params": [
        1160,
        100
      ]
    }
  ],
  "RollType": 1,
  "DamageType": 1,
  "SkillType": "Attack",
  "Camps": "Enemy",
  "Launch_Range": 6,
  "Fire_EP": 3,
  "Target_EP": 2,
  "Attack_EP": 3,
  "CD": 1,
  "SkillCost": {
    "sp": 42
  },
  "DelayCD": 1,
  "PreCondition": [
    {
      "equipFeature": 1,
      "type": 2
    }
  ],
  "Lead_Type": {
    "CCT": 0,
    "FCT": 2,
    "type": 2
  },
  "Logic": "SkillPointRange",
  "Logic_Param": {
    "count": 1,
    "effect": "DragonWater_hit,LowRange_B2",
    "fieldarea_cannot_immune": 1,
    "interval": 1,
    "isCountTrap": 1,
    "loop": false,
    "no_select": 1,
    "range": 3,
    "team_range": 3
  },
  "Damage": [
    {
      "damChangePer": 11.6,
      "elementparam": 3,
      "type": 1401
    }
  ],
  "DamTime": {
    "type": 1,
    "value": 3
  },
  "Buff": {
    "enemy": [
      117760,
      117662,
      1002110
    ],
    "self": [
      41201,
      41741,
      124122,
      124161
    ],
    "team": [
      124161
    ]
  },
  "Pvp_buff": {
    "enemy": [
      117760,
      117662,
      1002110
    ],
    "self": [
      41201,
      41741,
      124122,
      124161
    ],
    "team": [
      124161
    ]
  },
  "CastAct": "reading",
  "AttackAct": [
    "use_skill"
  ],
  "SE_cast": "Skill/Magic_cast",
  "SE_attack": "Skill/DragonBreath_water_hit",
  "description": {
    "chinesesimplified": "##1272000",
    "english": "##1272000",
    "german": "##1272000",
    "portuguese": "##1272000",
    "spanish": "##1272000"
  }
}