Formula

CommonFun.calcBuff_7191

function CommonFun.calcBuff_7191(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local skilllv = srcUser:GetLernedSkillLevel(2363_ACOLYTE:ESMA_SMALL)
  local A = 0
  if 0 < skilllv and CommonFun.Shape ~= nil and CommonFun.Shape.S == targetUser.shape then
    A = 100
  end
  if targetUser:HasBuffID(160000_BOSS_IMMUNE_EFFECT_:MAX_STACK_0) then
    A = 0
  end
  if targetUser.boss == true or targetUser.mini == true then
    A = 0
  end
  return A
end