Dying Tactic

Dying Tactic

Lv 20AttackPhysical

Range: 3

Skill Levels

Lvl: 10
Telesport
CD: 5 sec
Range: 60
Fixed Cast Time: 1

• After chanting for 0.5 sec, Appears on a random spot on the map

Formula

1function CommonFun.calcDamage_9004(srcUser, targetUser, params, damageParam, logger)
2  local Hp = targetUser:GetProperty("Hp")
3  local Weapon = srcUser:GetEquipedID(7_WEAPON)
4  local targetRace = targetUser.race
5  if targetUser:HasBuffID(139410_TWO_FACE_DEMON_KING_HUMAN_:MAX_STACK_0) then
6    race2 = 3
7  end
8  if srcUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) and srcUser:HasBuffID(49325_RACIAL_ANCIENT_RELICS_CD_:MAX_STACK_0) then
9  elseif srcUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) then
10    targetRace = 2
11  end
12  local enemy = srcUser:IsEnemy(targetUser)
13  local A = Hp - 1
14  if enemy then
15    if targetRace == 3 and (Weapon == 41815_SABBATH_1 or Weapon == 141815_SABBATH_2) then
16      if targetUser.boss == true or targetUser.mini == true then
17        return 0, 0
18      else
19        return A
20      end
21    elseif targetRace == 1 and (Weapon == 41836_SLAUGHTER_HAND_AXE_1 or Weapon == 141836_SLAUGHTER_HAND_AXE_2) then
22      if targetUser.boss == true or targetUser.mini == true then
23        return 0, 0
24      else
25        return A
26      end
27    else
28      return 0, 0
29    end
30  else
31    return 0, 0
32  end
33  return 0, 0
34end
Preserved HTML snapshot from ROM Handbook