Formula

CommonFun.calcBuff_2220

formula.lua
1function CommonFun.calcBuff_2220(srcUser, targetUser, a, b, c, d, lv)
2  if srcUser == nil or targetUser == nil then
3    return 0
4  end
5  local targetRace = targetUser.race
6  if targetUser:HasBuffID(139410_TWO_FACE_DEMON_KING_HUMAN_:MAX_STACK_0) then
7    targetRace = 3
8  end
9  if srcUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) and srcUser:HasBuffID(49325_RACIAL_ANCIENT_RELICS_CD_:MAX_STACK_0) then
10  elseif srcUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) then
11    targetRace = 2
12  end
13  if targetRace == 5 and srcUser:HasBuffID(50670_ORC_ZOMBIE_CARD_:MAX_STACK_0) then
14    return -0.2
15  else
16    return 0
17  end
18end
Formula Graph

Connected Archive Data

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

Loading graph filters

CommonFun.calcBuff_2220

commonfun-calcbuff_2220

Nodes

0

Edges

0

Related Nodes

Select at least one node type.