Skill #4015001

Blazar Trap

Level 5

Cost 1 | Buff

ID 4015005

Level 4

Cost 1 | Buff

ID 4015004

Level 3

Cost 1 | Buff

ID 4015003

Level 2

Cost 1 | Buff

ID 4015002

Level 1

Cost 1 | Buff

ID 4015001

Formulas & functions

CommonFun links

Blazar TrapLv 1-5 | buff | Buffs 131110

Formula source

function CommonFun.calcBuff_100(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local SilenceAtk = srcUser:GetProperty("SilenceAtk")
  local SilenceDef2 = targetUser:GetProperty("SilenceDef")
  local SlienceDam = 1 + SilenceAtk - SilenceDef2
  if SlienceDam <= 0 then
    SlienceDam = 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) * SlienceDam * StateDam * CommonFun.calcAttrSilenceRate(srcUser, targetUser)
  if A <= 0 then
    return 0
  end
  return A
end
Blazar TrapLv 1-5 | buff | Buffs 131111

Formula source

function CommonFun.calcBuff_130(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local StunAtk = srcUser:GetProperty("StunAtk")
  local StunDef2 = targetUser:GetProperty("StunDef")
  local StunDam = 1 + StunAtk - StunDef2
  if StunDam <= 0 then
    StunDam = 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) * StunDam * StateDam * CommonFun.calcAttrDizzyRate(srcUser, targetUser)
  if A <= 0 then
    return 0
  end
  return A
end

Skill JSON (Level 5)

{
  "id": 4015005,
  "NameZh": "耀变体陷阱",
  "Level": 5,
  "Icon": "skill_4004001",
  "Cost": 1,
  "SkillType": "Buff",
  "Camps": "Enemy",
  "Launch_Range": 4,
  "Fire_EP": 3,
  "Target_EP": 3,
  "Attack_EP": 3,
  "Logic": "SkillSelfRange",
  "Logic_Param": {
    "isCountTrap": 1,
    "no_select": 1,
    "range": 4,
    "range_num": 15,
    "suspend_can_immune": 1
  },
  "Buff": {
    "enemy": [
      131110,
      131111
    ]
  },
  "Pvp_buff": {
    "enemy": [
      131110,
      131111
    ]
  },
  "AttackAct": [
    "use_magic"
  ],
  "SE_cast": "Common/Magic_cast",
  "SE_attack": "Skill/Spear_attack"
}