CommonFun

CommonFun.calcAttrBlindTime

Dataset · 20251127_update

Formula Source

function CommonFun.calcAttrBlindTime(srcUser, targetUser)
  local Int = srcUser:GetProperty("Int")
  local Vit = targetUser:GetProperty("Vit")
  local StateTimeAtk = srcUser:GetProperty("StateTimeAtk")
  local StateTimeDef2 = targetUser:GetProperty("StateTimeDef")
  local A = math.min(1, Int * 0.3 / 100)
  local B = math.min(1, Vit * 0.4 / 100)
  local Time = 1 + A - B + StateTimeAtk - StateTimeDef2
  if Time <= 0 then
    Time = 0
  end
  return Time
end
No formula links

Version History

Loading dependencies...
Loading usage...