Formula

CommonFun.CheckStormBossMiss

formula.lua
1function CommonFun.CheckStormBossMiss(targetUser, srcUser)
2  local monster = Table_Monster[targetUser:GetNpcID()]
3  if monster == nil then
4    return false
5  end
6  if targetUser.isBossFromBranch == true then
7    return false
8  end
9  if monster.BattleTimeReward == nil or monster.BattleTimeReward.cost_time == nil then
10    return false
11  end
12  local costtime = monster.BattleTimeReward.cost_time
13  if srcUser:OpenStormBossLucky() == true then
14    local costtime1 = monster.BattleTimeReward.cost_time / 10
15    return costtime1 > srcUser:GetSpareBattleTime()
16  else
17    return costtime > srcUser:GetSpareBattleTime()
18  end
19end
Formula Graph

Connected Archive Data

See which cards, equipment, headwears, buffs, and other archived records connect to this formula.

Loading graph filters

CommonFun.CheckStormBossMiss

commonfun-checkstormbossmiss

Nodes

0

Edges

0

Related Nodes

Select at least one node type.