Formula

CommonFun.CalcRaceParam2

formula.lua
1function CommonFun.CalcRaceParam2(srcUser, targetUser, params, damageParam, logger)
2  local raceInc = 0
3  local raceRed = 0
4  local srcRace = srcUser.race
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(139411_TWO_FACE_DEMON_KING_DEMON_:MAX_STACK_0) then
10    srcRace = 3
11  end
12  if srcUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) and srcUser:HasBuffID(49325_RACIAL_ANCIENT_RELICS_CD_:MAX_STACK_0) then
13  elseif srcUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) then
14    targetRace = 2
15  end
16  if targetUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) and targetUser:HasBuffID(49325_RACIAL_ANCIENT_RELICS_CD_:MAX_STACK_0) then
17  elseif targetUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) then
18    srcRace = 2
19  end
20  if nil == CommonFun.RaceProps[targetRace] then
21    return 1
22  end
23  if nil == CommonFun.RaceProps[srcRace] then
24    return 1
25  end
26  raceInc = srcUser:GetProperty(CommonFun.RaceProps[targetRace][1])
27  raceRed = targetUser:GetProperty(CommonFun.RaceProps[srcRace][2])
28  return 1 - raceRed
29end
Formula Graph

Connected Archive Data

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

Loading graph filters

CommonFun.CalcRaceParam2

commonfun-calcraceparam

Nodes

0

Edges

0

Related Nodes

Select at least one node type.