Skill #1124011

Crazy Weed

Summon a plant that inflicts Earth Physical Damage equivalent to [8df936]%s%%[-] Atk to enemies within range and randomly removes %s traps and magic effects from the ground (such as Ankle Snare, The Circle, Light Shield, Storm Gust, Fire Pillar etc.). Have a [8df936]%s%%[-] chance of randomly removing 2 Gain Effect from enemies

Level 11

Gentle Spirit

CD 7.5s | Cost 1 | ClearEffect

ID 1124011

Formulas & functions

CommonFun links

Crazy WeedLv 11-15 | buff | Buffs 116300

Formula source

function CommonFun.calcBuff_5010(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Value = srcUser:GetGemValue(c)
  local A = lv * a + b + Value / 1000
  return A
end
Crazy WeedLv 1-15 | damage

Formula source

function CommonFun.calcDamage_13403(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 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 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 skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
  if skillID == 1133 then
    AtkPer = 0
  end
  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 DefReduc = CommonFun.CalcDef(srcUser, targetUser)
  local LongRangeDamReduc2 = targetUser:GetProperty("LongRangeDamReduc")
  local GemValue = srcUser:GetGemValue(132032)
  local GemDam = 1 + GemValue / 100000
  local A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) * GemDam - Vit2 * (1 + VitPer2)
  local Redhandbag3 = 1
  local Ring1 = srcUser:GetEquipedID(1)
  if Ring1 == 42551 or Ring1 == 142551 then
    Redhandbag3 = 1.15
  end
  local RefineLv1 = srcUser:GetEquipedRefineLv(1)
  if 10 <= RefineLv1 and srcUser:HasBuffID(90002213) then
    Redhandbag3 = Redhandbag3 + 0.15
  end
  local equipRing = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_EQUIP, CommonFun.EquipPos.EEQUIPPOS_SHIELD)
  if (equipRing.id == 42592 or equipRing.id == 142592) and 10 <= equipRing.refinelv then
    Redhandbag3 = Redhandbag3 + 0.15 + 0.15
  elseif equipRing.id == 42592 or equipRing.id == 142592 then
    Redhandbag3 = Redhandbag3 + 0.15
  end
  local equipRingSD = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_SHADOWEQUIP, CommonFun.EquipPos.EEQUIPPOS_SHIELD)
  if (equipRingSD.id == 42592 or equipRingSD.id == 142592) and 10 <= equipRingSD.refinelv then
    Redhandbag3 = Redhandbag3 + 0.3 * equipRingSD.quench_per / 100
  elseif equipRingSD.id == 42592 or equipRingSD.id == 142592 then
    Redhandbag3 = Redhandbag3 + 0.15 * equipRingSD.quench_per / 100
  end
  if skillID == 1124 then
    local Numxp = srcUser:GetRunePoint(134060)
    local RuneDamage = 1 + Numxp * 0.08
    local skilllv_zw = srcUser:GetLernedSkillLevel(3704)
    A = A * Redhandbag3 * RuneDamage * (1 + skilllv_zw * 0.02)
  end
  if A <= 1 then
    return 1
  end
  return A
end

Skill JSON (Level 11)

{
  "id": 1124011,
  "NameZh": "疯狂野草",
  "Level": 11,
  "Icon": "skill_1124001",
  "Cost": 1,
  "NextNewID": 1124012,
  "Desc": [
    {
      "id": 1124001,
      "params": [
        1400,
        8,
        4
      ]
    }
  ],
  "RollType": 1,
  "DamageType": 1,
  "SkillType": "ClearEffect",
  "Camps": "Enemy",
  "Launch_Range": 6,
  "Fire_EP": 3,
  "Target_EP": 3,
  "Attack_EP": 3,
  "CD": 7.5,
  "SkillCost": {
    "sp": 78
  },
  "DelayCD": 1.5,
  "Lead_Type": {
    "CCT": 0,
    "FCT": 3,
    "type": 2
  },
  "Logic": "SkillPointRange",
  "Logic_Param": {
    "clear_num": 8,
    "count": 1,
    "effect": "CrazyWildGrass_attack,LowBuff_B",
    "fieldarea_cannot_immune": 1,
    "forceClear": [
      1303
    ],
    "isCountTrap": 1,
    "no_select": 1,
    "range": 3,
    "range_num": 8
  },
  "Damage": [
    {
      "damChangePer": 14,
      "elementparam": 2,
      "type": 13403
    }
  ],
  "DamTime": {
    "type": 1,
    "value": 2
  },
  "Buff": {
    "enemy": [
      116300
    ]
  },
  "Pvp_buff": {
    "enemy": [
      116300
    ]
  },
  "AttackAct": [
    "use_magic"
  ],
  "SE_cast": "Common/Magic_cast",
  "SE_attack": "Skill/CrazyWildGrass_attack",
  "description": {
    "chinesesimplified": "温柔之灵",
    "english": "Gentle Spirit",
    "german": "Zarter Geist",
    "portuguese": "Espírito Gentil",
    "spanish": "Espíritu de la amabilidad"
  }
}