Skill #183001

Grimtooth

Level 10

(Pressing the red button)

Cost 1 | Attack

ID 183010

Level 9

(Pressing the red button)

Cost 1 | Attack

ID 183009

Level 8

(Pressing the red button)

Cost 1 | Attack

ID 183008

Level 7

(Pressing the red button)

Cost 1 | Attack

ID 183007

Level 6

(Pressing the red button)

Cost 1 | Attack

ID 183006

Level 5

(Pressing the red button)

Cost 1 | Attack

ID 183005

Level 4

(Pressing the red button)

Cost 1 | Attack

ID 183004

Level 3

(Pressing the red button)

Cost 1 | Attack

ID 183003

Level 2

(Pressing the red button)

Cost 1 | Attack

ID 183002

Level 1

(Pressing the red button)

Cost 1 | Attack

ID 183001

Formulas & functions

CommonFun links

GrimtoothLv 1-10 | damage

Formula source

function CommonFun.calcDamage_3201(srcUser, targetUser, params, damageParam, logger)
  local Str = srcUser:GetProperty("Str")
  local Dex = srcUser:GetProperty("Dex")
  local Luk = srcUser:GetProperty("Luk")
  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 AttrEffect = srcUser:GetProperty("AttrEffect")
  local bits = CommonFun.getBits(AttrEffect)
  local AttrEffect2 = srcUser:GetProperty("AttrEffect")
  local bits2 = CommonFun.getBits(AttrEffect2)
  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 damChangePer1 = damageParam.damChangePer1
  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 DefReduc = CommonFun.CalcDef(srcUser, targetUser)
  local LongRangeDamReduc2 = targetUser:GetProperty("LongRangeDamReduc")
  local BaseLvDamage = 0
  local IBaseLv = srcUser.BaseLv
  if srcUser:HasBuffID(42170) then
    BaseLvDamage = IBaseLv * 20
  end
  local Num1 = srcUser:GetRunePoint(32026)
  local Num2 = srcUser:GetRunePoint(32027)
  local Num3 = srcUser:GetRunePoint(32028)
  local Num4 = srcUser:GetRunePoint(32029)
  local Num5 = srcUser:GetRunePoint(32030)
  local RuneDamage = Num1 * 0.1 + Num2 * 0.05 + Num3 * 0.05 + Num4 * 0.1 + Num5 * 0.05 + 1
  local Num6 = srcUser:GetRunePoint(32019)
  local Num7 = srcUser:GetRunePoint(32020)
  local Num8 = srcUser:GetRunePoint(32021)
  local Num9 = srcUser:GetRunePoint(32022)
  local Num10 = srcUser:GetRunePoint(32023)
  local RuneDamage2 = Num6 * 0.2 + Num7 * 0.2 + Num8 * 0.4 + Num9 * 0.2 + Num10 * 0.4 + 1
  local RuneRate = (Num6 + Num7 + Num8 + Num9 + Num10) * 5
  local DamGem = srcUser:GetGemValue(31101)
  local A = (((AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 + DamIncrease - LongRangeDamReduc2) + damChangePer1) * (1 - RefineDamReduc) - Vit2 * (1 + VitPer2)) * RuneDamage * (1 + DamGem / 100000) + BaseLvDamage
  if A <= 1 then
    return 1
  end
  local B = 1
  if bits[CommonFun.AttrEffect.DuRenAndWuYingDam] == 1 and srcUser:HasBuffID(90001044) and srcUser:HasBuffID(90001047) then
    B = 2
  elseif bits[CommonFun.AttrEffect.DuRenAndWuYingDam] == 1 and srcUser:HasBuffID(90001044) then
    B = 1.8
  elseif bits[CommonFun.AttrEffect.DuRenAndWuYingDam] == 1 then
    B = 1.5
  end
  local C = 1
  if bits2[CommonFun.AttrEffect.Hualiduanjian] == 1 then
    C = 1.5
  end
  if CommonFun.IsInRate(RuneRate, srcUser:GetRandom()) then
    return A * B * C * RuneDamage2, CommonFun.DamageType.Crit
  end
  return A * B * C
end

Skill JSON (Level 10)

{
  "id": 183010,
  "NameZh": "无影之牙",
  "Level": 10,
  "Icon": "skill_183001",
  "Cost": 1,
  "Desc": [
    {
      "id": 183000,
      "params": [
        240,
        75
      ]
    }
  ],
  "RollType": 1,
  "DamageType": 1,
  "SkillType": "Attack",
  "Camps": "Enemy",
  "Launch_Range": 6,
  "Fire_EP": 2,
  "Target_EP": 2,
  "Attack_EP": 2,
  "SkillCost": {
    "sp": 14
  },
  "DelayCD": 1.5,
  "PreCondition": {
    "1": {
      "itemtype": 200,
      "type": 2
    },
    "2": {
      "AttrEffect": 17,
      "type": 4
    },
    "both": 1
  },
  "Logic": "SkillLockedTarget",
  "Logic_Param": {
    "disperse_hide": 4,
    "main_hit_effect": "Grimtooth,none",
    "range": 3,
    "range_num": 8
  },
  "Damage": [
    {
      "damChangePer": 2.4,
      "damChangePer1": 50,
      "type": 3201
    }
  ],
  "DamTime": {
    "type": 1,
    "value": 3
  },
  "AttackAct": [
    "use_magic"
  ],
  "SE_attack": "Skill/skill_magic_shadowbite_attack_01",
  "SE_hit": "Skill/Grimtooth_hit",
  "description": {
    "chinesesimplified": "(按下红色按钮)",
    "english": "(Pressing the red button)",
    "german": "(Die rote Taste drücken)",
    "portuguese": "(Aperta o botão vermelho)",
    "spanish": "(Presionando el botón rojo)"
  }
}