Formula

CommonFun.IsMiss

formula.lua
1function CommonFun.IsMiss(srcUser, targetUser, skillParams)
2  local AttrEffect = srcUser:GetProperty("AttrEffect")
3  local StateEffect2 = targetUser:GetProperty("StateEffect")
4  local bits = CommonFun.getBits(AttrEffect)
5  local bits2 = CommonFun.getBits(StateEffect2)
6  if bits[CommonFun.AttrEffect.MustHitAndCri] == 1 or bits2[CommonFun.StateEffect.Sleep] == 1 then
7    return false
8  end
9  local hitRate = CommonFun.CalcHitRate(srcUser, targetUser, skillParams)
10  if CommonFun.IsInRate(hitRate, srcUser:GetRandom()) == false then
11    return true
12  end
13  return false
14end
Formula Graph

Connected Archive Data

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

Loading graph filters

CommonFun.IsMiss

commonfun-ismiss

Nodes

0

Edges

0

Related Nodes

Select at least one node type.