
Cat Chicken Fist
Lv 1AttackPhysical
Knocks back all nearby units and deals (Atk250%) fire Dmg. Applies Auto Attacks with fire attribute and gains 20% Atk damage. Lasts 10 sec
Range: 1
Formula
1function CommonFun.calcDamage_8002(srcUser, targetUser, params, damageParam, logger)
2 local Str = srcUser:GetProperty("Str")
3 local Dex = srcUser:GetProperty("Dex")
4 local Luk = srcUser:GetProperty("Luk")
5 local Atk = srcUser:GetProperty("Atk")
6 local AtkPer = srcUser:GetProperty("AtkPer")
7 local DamIncrease = srcUser:GetProperty("DamIncrease")
8 local IgnoreDef = 0
9 local IgnoreDef1 = srcUser:GetProperty("IgnoreDef")
10 local IgnoreDef2 = srcUser:GetProperty("IgnoreEquipDef")
11 if targetUser.boss or targetUser.mini then
12 IgnoreDef = IgnoreDef1
13 else
14 IgnoreDef = IgnoreDef1 + IgnoreDef2
15 end
16 if 1 <= IgnoreDef then
17 IgnoreDef = 1
18 end
19 local BaseLv = targetUser.BaseLv
20 local WeaponType = srcUser:GetEquipedWeaponType()
21 local skilllv_1 = srcUser:GetLernedSkillLevel(damageParam.skill1_id)
22 local Refine = srcUser:GetProperty("Refine")
23 local damChangePer = damageParam.damChangePer
24 local damChangePer1 = damageParam.damChangePer1
25 local Def2 = targetUser:GetProperty("Def")
26 local DefPer2 = targetUser:GetProperty("DefPer")
27 local Vit2 = targetUser:GetProperty("Vit")
28 local VitPer2 = targetUser:GetProperty("VitPer")
29 local DamReduc2 = CommonFun.calcDamReDuc(srcUser, targetUser)
30 local RefineDamReduc = CommonFun.calcRefineDamReduc(srcUser, targetUser)
31 local AttrEffect2 = srcUser:GetProperty("AttrEffect")
32 local bits2 = CommonFun.getBits(AttrEffect2)
33 local AtkFinal = math.random(BaseLv * 10, BaseLv * 16) * damChangePer + math.random(500, 1500) * damChangePer1
34 local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
35 local A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * (1 + DamIncrease) * (1 - RefineDamReduc) - Vit2 * (1 + VitPer2)
36 if A <= 1 then
37 return 1
38 end
39 return A
40endPreserved HTML snapshot from ROM Handbook
