Serpent Domain
Lvl: 10 Buff CD: 6 sec Skill Delay: 1 sec SP: 100 Range: 6

●Creates a Serpent Domain at the specified location. When Jörmungandr is in the domain, ATK of all his debuff skills increases by 30%. When an enemy is in the domain, all their debuff res is reduced by 50%. The Serpent Domain lasts 30s. There can only be one at a time.
●The domain uses [Venom Erosion] on summoned enemy units that are alive.
●Whenever [Stack-up] is triggered 3 times in the range, gains 1 [Serpent Echo]: Final DMG +10%. [Serpent Echo] lasts 10s. Up to 3 can be gained.

Lvl: 9 Buff CD: 6 sec Skill Delay: 1 sec SP: 100 Range: 6
• ●Creates a Serpent Domain at the specified location. When Jörmungandr is in the domain, ATK of all his debuff skills increases by 27%. When an enemy is in the domain, all their debuff res is reduced by 45%. The Serpent Domain lasts 30s. There can only be one at a time. ●The domain uses [Venom Erosion] on summoned enemy units that are alive. ●Whenever [Stack-up] is triggered 3 times in the range, gains 1 [Serpent Echo]: Final DMG +10%. [Serpent Echo] lasts 10s. Up to 3 can be gained.
Lvl: 8 Buff CD: 6 sec Skill Delay: 1 sec SP: 100 Range: 6
• ●Creates a Serpent Domain at the specified location. When Jörmungandr is in the domain, ATK of all his debuff skills increases by 24%. When an enemy is in the domain, all their debuff res is reduced by 40%. The Serpent Domain lasts 30s. There can only be one at a time. ●The domain uses [Venom Erosion] on summoned enemy units that are alive. ●Whenever [Stack-up] is triggered 3 times in the range, gains 1 [Serpent Echo]: Final DMG +10%. [Serpent Echo] lasts 10s. Up to 3 can be gained.
Lvl: 7 Buff CD: 6 sec Skill Delay: 1 sec SP: 100 Range: 6
• ●Creates a Serpent Domain at the specified location. When Jörmungandr is in the domain, ATK of all his debuff skills increases by 21%. When an enemy is in the domain, all their debuff res is reduced by 35%. The Serpent Domain lasts 30s. There can only be one at a time. ●The domain uses [Venom Erosion] on summoned enemy units that are alive. ●Whenever [Stack-up] is triggered 3 times in the range, gains 1 [Serpent Echo]: Final DMG +10%. [Serpent Echo] lasts 10s. Up to 3 can be gained.
Lvl: 6 Buff CD: 6 sec Skill Delay: 1 sec SP: 100 Range: 6
• ●Creates a Serpent Domain at the specified location. When Jörmungandr is in the domain, ATK of all his debuff skills increases by 18%. When an enemy is in the domain, all their debuff res is reduced by 30%. The Serpent Domain lasts 30s. There can only be one at a time. ●The domain uses [Venom Erosion] on summoned enemy units that are alive. ●Whenever [Stack-up] is triggered 3 times in the range, gains 1 [Serpent Echo]: Final DMG +10%. [Serpent Echo] lasts 10s. Up to 3 can be gained.
Lvl: 5 Buff CD: 6 sec Skill Delay: 1 sec SP: 100 Range: 6
• ●Creates a Serpent Domain at the specified location. When Jörmungandr is in the domain, ATK of all his debuff skills increases by 15%. When an enemy is in the domain, all their debuff res is reduced by 25%. The Serpent Domain lasts 30s. There can only be one at a time. ●The domain uses [Venom Erosion] on summoned enemy units that are alive. ●Whenever [Stack-up] is triggered 3 times in the range, gains 1 [Serpent Echo]: Final DMG +10%. [Serpent Echo] lasts 10s. Up to 3 can be gained.
Lvl: 4 Buff CD: 6 sec Skill Delay: 1 sec SP: 100 Range: 6
• ●Creates a Serpent Domain at the specified location. When Jörmungandr is in the domain, ATK of all his debuff skills increases by 12%. When an enemy is in the domain, all their debuff res is reduced by 20%. The Serpent Domain lasts 30s. There can only be one at a time. ●The domain uses [Venom Erosion] on summoned enemy units that are alive. ●Whenever [Stack-up] is triggered 3 times in the range, gains 1 [Serpent Echo]: Final DMG +10%. [Serpent Echo] lasts 10s. Up to 3 can be gained.
Lvl: 3 Buff CD: 6 sec Skill Delay: 1 sec SP: 100 Range: 6
• ●Creates a Serpent Domain at the specified location. When Jörmungandr is in the domain, ATK of all his debuff skills increases by 9%. When an enemy is in the domain, all their debuff res is reduced by 15%. The Serpent Domain lasts 30s. There can only be one at a time. ●The domain uses [Venom Erosion] on summoned enemy units that are alive. ●Whenever [Stack-up] is triggered 3 times in the range, gains 1 [Serpent Echo]: Final DMG +10%. [Serpent Echo] lasts 10s. Up to 3 can be gained.
Lvl: 2 Buff CD: 6 sec Skill Delay: 1 sec SP: 100 Range: 6
• ●Creates a Serpent Domain at the specified location. When Jörmungandr is in the domain, ATK of all his debuff skills increases by 6%. When an enemy is in the domain, all their debuff res is reduced by 10%. The Serpent Domain lasts 30s. There can only be one at a time. ●The domain uses [Venom Erosion] on summoned enemy units that are alive. ●Whenever [Stack-up] is triggered 3 times in the range, gains 1 [Serpent Echo]: Final DMG +10%. [Serpent Echo] lasts 10s. Up to 3 can be gained.
Lvl: 1 Buff CD: 6 sec Skill Delay: 1 sec SP: 100 Range: 6
• ●Creates a Serpent Domain at the specified location. When Jörmungandr is in the domain, ATK of all his debuff skills increases by 3%. When an enemy is in the domain, all their debuff res is reduced by 5%. The Serpent Domain lasts 30s. There can only be one at a time. ●The domain uses [Venom Erosion] on summoned enemy units that are alive. ●Whenever [Stack-up] is triggered 3 times in the range, gains 1 [Serpent Echo]: Final DMG +10%. [Serpent Echo] lasts 10s. Up to 3 can be gained.

Enemy Npc 6

function CommonFun.calcBuff_6(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local MaxHp = targetUser:GetProperty("MaxHp")
  local A = MaxHp * (a + c) + b
  if 0 < A or a == 0 then
    return A
  end
  if srcUser:GetNpcID() == 0 and targetUser:HasBuffID(160000_BOSS_IMMUNE_EFFECT_:MAX_STACK_0) and targetUser.boss == false and targetUser.mini == false then
    return 0
  end
  if srcUser:GetNpcID() == 0 and (targetUser.boss or targetUser.mini) then
    local Vit = srcUser:GetProperty("Vit")
    local MAtk = srcUser:GetProperty("MAtk")
    local MAtkPer = srcUser:GetProperty("MAtkPer")
    local Refine = srcUser:GetProperty("Refine")
    local MRefine = srcUser:GetProperty("MRefine")
    local Def2 = targetUser:GetProperty("Def")
    local DefPer2 = targetUser:GetProperty("DefPer")
    local MDef2 = targetUser:GetProperty("MDef")
    local MDefPer2 = targetUser:GetProperty("MDefPer")
    local Vit2 = targetUser:GetProperty("Vit")
    local VitPer2 = targetUser:GetProperty("VitPer")
    local DamReduc2 = CommonFun.calcDamReDuc(srcUser, targetUser)
    local RefineDamReduc = targetUser:GetProperty("RefineDamReduc")
    local Int2 = targetUser:GetProperty("Int")
    local IntPer2 = targetUser:GetProperty("IntPer")
    local MDamReduc2 = CommonFun.calcMDamReDuc(srcUser, targetUser)
    local RefineMDamReduc = targetUser:GetProperty("RefineMDamReduc")
    local Str = srcUser:GetProperty("Str")
    local Dex = srcUser:GetProperty("Dex")
    local Luk = srcUser:GetProperty("Luk")
    local Atk = srcUser:GetProperty("Atk")
    local AtkPer = srcUser:GetProperty("AtkPer")
    local DamIncrease = srcUser:GetProperty("DamIncrease")
    local MDamIncrease = CommonFun.calcMDamIncrease(srcUser, targetUser)
    local IgnoreDef = srcUser:GetProperty("IgnoreDef")
    if 1 <= IgnoreDef then
      IgnoreDef = 1
    end
    local IgnoreMDef = srcUser:GetProperty("IgnoreMDef")
    if 1 <= IgnoreMDef then
      IgnoreMDef = 1
    end
    local raceparam = 1
    local srcRace = srcUser.race
    local targetRace = targetUser.race
    if srcUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) and srcUser:HasBuffID(49325_RACIAL_ANCIENT_RELICS_CD_:MAX_STACK_0) then
    elseif srcUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) then
      targetRace = 2
    end
    if targetUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) and targetUser:HasBuffID(49325_RACIAL_ANCIENT_RELICS_CD_:MAX_STACK_0) then
    elseif targetUser:HasBuffID(49320_RACIAL_ANCIENT_RELICS_PERMANENT_:MAX_STACK_0) then
      srcRace = 2
    end
    if nil == CommonFun.RaceProps[targetRace] then
      return 0
    end
    if nil == CommonFun.RaceProps[srcRace] then
      return 0
    end
    local raceInc = srcUser:GetProperty(CommonFun.RaceProps[targetRace][1])
    local raceRed = targetUser:GetProperty(CommonFun.RaceProps[srcRace][2])
    local raceparam = 1 + raceInc - raceRed
    if raceparam <= 0.1 then
      raceparam = 0.1
    end
    local MAtkFinal = MAtk * (1 + MAtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * raceparam
    local AtkFinal = Atk * (1 + AtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * raceparam
    if MAtkFinal <= AtkFinal then
      local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
      A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * a * 100 * (1 - RefineDamReduc) * (1 + DamIncrease) - Vit2 * (1 + VitPer2) + b
    else
      local MDefReduc = CommonFun.CalcMDef(srcUser, targetUser)
      A = (MAtkFinal * MDefReduc * (1 - MDamReduc2) + MRefine) * a * 100 * (1 - RefineMDamReduc) * (1 + MDamIncrease) - Vit2 / 2 * (1 + VitPer2) - Int2 * (1 + IntPer2) + b
    end
  end
  local AttrFunction = srcUser:GetProperty("AttrFunction")
  local bitfunc = CommonFun.getBits(AttrFunction)
  if (targetUser.boss or targetUser.mini or targetUser.changelinepunish) and (targetUser.zoneType == 1 or targetUser.zoneType == 22) and targetUser.noPunishBoss == false and bitfunc[CommonFun.AttrFunction.JustInViceZone] == 1 and targetUser.isBossFromBranch == false then
    A = 0
  end
  if CommonFun.checkAttrFunctionMiss(targetUser, srcUser) then
    A = 0
  end
  if targetUser.boss and targetUser.zoneType == 22 and CommonFun.CheckStormBossMiss(targetUser, srcUser) then
    A = 0
  end
  if targetUser:GetNpcID() == 30043_YEAR or targetUser:GetNpcID() == 280303_WILDNESS_SPIRIT_BEAST or targetUser:GetNpcID() == 56008_GOMORA or targetUser:GetNpcID() == 56009_BALTAN or targetUser:GetNpcID() == 56010_GOLZA or targetUser:GetNpcID() == 56011_BEMSTAR or targetUser:GetNpcID() == 56012_ELEKING or targetUser:GetNpcID() == 56013_KING_JOE then
    A = -1
  end
  if targetUser:DamageAlways1() then
    A = -1
  end
  return A
end

Enemy

{
  "id": 137584,
  "BuffName": "Snake's domain (reduce abnormal state resistance)",
  "BuffRate": {
    "Odds": 100
  },
  "BuffEffect": {
    "type": "AttrChange",
    "SlowDef": {
      "a": 2709,
      "b": -0.05,
      "c": 0,
      "type": 8
    },
    "StunDef": {
      "a": 2709,
      "b": -0.05,
      "c": 0,
      "type": 8
    },
    "BleedDef": {
      "a": 2709,
      "b": -0.05,
      "c": 0,
      "type": 8
    },
    "BlindDef": {
      "a": 2709,
      "b": -0.05,
      "c": 0,
      "type": 8
    },
    "ChaosDef": {
      "a": 2709,
      "b": -0.05,
      "c": 0,
      "type": 8
    },
    "CurseDef": {
      "a": 2709,
      "b": -0.05,
      "c": 0,
      "type": 8
    },
    "SleepDef": {
      "a": 2709,
      "b": -0.05,
      "c": 0,
      "type": 8
    },
    "StoneDef": {
      "a": 2709,
      "b": -0.05,
      "c": 0,
      "type": 8
    },
    "FreezeDef": {
      "a": 2709,
      "b": -0.05,
      "c": 0,
      "type": 8
    },
    "PoisonDef": {
      "a": 2709,
      "b": -0.05,
      "c": 0,
      "type": 8
    },
    "SilenceDef": {
      "a": 2709,
      "b": -0.05,
      "c": 0,
      "type": 8
    },
    "DarkStateDef": {
      "a": 2709,
      "b": -0.05,
      "c": 0,
      "type": 8
    }
  }
}

Enemy Npc

{
  "id": 137584,
  "BuffName": "Snake's domain (reduce abnormal state resistance)",
  "BuffRate": {
    "Odds": 100
  },
  "BuffEffect": {
    "type": "AttrChange",
    "SlowDef": {
      "a": 2709,
      "b": -0.05,
      "c": 0,
      "type": 8
    },
    "StunDef": {
      "a": 2709,
      "b": -0.05,
      "c": 0,
      "type": 8
    },
    "BleedDef": {
      "a": 2709,
      "b": -0.05,
      "c": 0,
      "type": 8
    },
    "BlindDef": {
      "a": 2709,
      "b": -0.05,
      "c": 0,
      "type": 8
    },
    "ChaosDef": {
      "a": 2709,
      "b": -0.05,
      "c": 0,
      "type": 8
    },
    "CurseDef": {
      "a": 2709,
      "b": -0.05,
      "c": 0,
      "type": 8
    },
    "SleepDef": {
      "a": 2709,
      "b": -0.05,
      "c": 0,
      "type": 8
    },
    "StoneDef": {
      "a": 2709,
      "b": -0.05,
      "c": 0,
      "type": 8
    },
    "FreezeDef": {
      "a": 2709,
      "b": -0.05,
      "c": 0,
      "type": 8
    },
    "PoisonDef": {
      "a": 2709,
      "b": -0.05,
      "c": 0,
      "type": 8
    },
    "SilenceDef": {
      "a": 2709,
      "b": -0.05,
      "c": 0,
      "type": 8
    },
    "DarkStateDef": {
      "a": 2709,
      "b": -0.05,
      "c": 0,
      "type": 8
    }
  }
}

Enemy Npc

{
  "id": 137604,
  "BuffName": "Venom Etching (summoned creature)",
  "BuffRate": {
    "Odds": {
      "a": 0,
      "b": 100,
      "type": 120
    }
  },
  "BuffEffect": {
    "id": [
      137605,
      137606,
      137607
    ],
    "type": "AddBuff"
  }
}

Enemy Npc

{
  "id": 137605,
  "BuffName": "Petrified",
  "BuffRate": {
    "Odds": {
      "type": 3079
    }
  },
  "BuffEffect": {
    "type": "StatusChange",
    "NoAct": 1,
    "DefPer": -0.5,
    "Freeze": 1,
    "DefAttr": 2,
    "NoSkill": 1,
    "AttrEffect": [
      3,
      4
    ],
    "hit_no_del": 1,
    "NoEffectMove": 3,
    "force_status": 1,
    "atk_def_priority": 1
  }
}

Enemy Npc

{
  "id": 137606,
  "BuffName": "Petrified",
  "BuffRate": {
    "Odds": {
      "type": 3079
    }
  },
  "BuffEffect": {
    "Hp": {
      "a": -0.05,
      "b": -10,
      "type": 6
    },
    "type": "HpReduce",
    "delHpPer": 0.2,
    "hit_no_del": 1,
    "force_status": 1
  }
}

Enemy Npc

{
  "id": 137607,
  "BuffName": "Petrification (special effects)",
  "BuffRate": {
    "Odds": {
      "type": 3079
    }
  },
  "BuffEffect": {
    "type": "SetShader",
    "ShaderConfigID": 2
  }
}

Self Skill

{
  "id": 137581,
  "BuffName": "Snake Domain",
  "BuffRate": {
    "Odds": 100
  },
  "BuffType": {
    "isgain": 1,
    "isdisperse": 1
  },
  "BuffEffect": {
    "type": "AttrChange",
    "SlowAtk": {
      "a": 2709,
      "b": 0.03,
      "c": 0,
      "type": 8
    },
    "StunAtk": {
      "a": 2709,
      "b": 0.03,
      "c": 0,
      "type": 8
    },
    "BleedAtk": {
      "a": 2709,
      "b": 0.03,
      "c": 0,
      "type": 8
    },
    "BlindAtk": {
      "a": 2709,
      "b": 0.03,
      "c": 0,
      "type": 8
    },
    "ChaosAtk": {
      "a": 2709,
      "b": 0.03,
      "c": 0,
      "type": 8
    },
    "CurseAtk": {
      "a": 2709,
      "b": 0.03,
      "c": 0,
      "type": 8
    },
    "SleepAtk": {
      "a": 2709,
      "b": 0.03,
      "c": 0,
      "type": 8
    },
    "StoneAtk": {
      "a": 2709,
      "b": 0.03,
      "c": 0,
      "type": 8
    },
    "FreezeAtk": {
      "a": 2709,
      "b": 0.03,
      "c": 0,
      "type": 8
    },
    "PoisonAtk": {
      "a": 2709,
      "b": 0.03,
      "c": 0,
      "type": 8
    },
    "SilenceAtk": {
      "a": 2709,
      "b": 0.03,
      "c": 0,
      "type": 8
    },
    "DarkStateAtk": {
      "a": 2709,
      "b": 0.03,
      "c": 0,
      "type": 8
    }
  }
}

Formula

{
  "CD": 6,
  "id": 2709010,
  "Buff": {
    "enemy": [
      137584
    ],
    "enemy_npc": [
      137604,
      137584
    ],
    "self_skill": [
      137581
    ],
    "enemy_npc_id": [
      580050,
      580070,
      580071,
      580072,
      580073,
      580074,
      580101,
      580102,
      580103,
      580104,
      580105,
      580203,
      580204,
      590010,
      590020,
      590030,
      591010,
      591020,
      591030,
      600010,
      600011,
      600020,
      600021,
      600030,
      600031,
      580310
    ]
  },
  "Cost": 1,
  "Desc": [
    {
      "id": 2709000,
      "params": [
        30,
        50
      ]
    }
  ],
  "Icon": "skill_2709001",
  "Camps": "Enemy",
  "Level": 10,
  "Logic": "SkillPointRange",
  "DescId": "##2831284",
  "NameZh": "##2826666",
  "DelayCD": 1,
  "Fire_EP": 3,
  "Pvp_buff": {
    "enemy": [
      137584
    ],
    "enemy_npc": [
      137604,
      137584
    ],
    "self_skill": [
      137581
    ],
    "enemy_npc_id": [
      580050,
      580070,
      580071,
      580072,
      580073,
      580074,
      580101,
      580102,
      580103,
      580104,
      580105,
      580203,
      580204,
      590010,
      590020,
      590030,
      591010,
      591020,
      591030,
      600010,
      600011,
      600020,
      600021,
      600030,
      600031,
      580310
    ]
  },
  "AttackAct": [
    "use_skill"
  ],
  "Attack_EP": 3,
  "SE_attack": "Skill/skill_hero_snake_giantsnake_attack_01",
  "SkillCost": {
    "sp": 100
  },
  "SkillType": "Buff",
  "Target_EP": 3,
  "Logic_Param": {
    "count": 30,
    "range": 4,
    "interval": 1,
    "max_count": 1,
    "no_select": 1,
    "range_num": 10,
    "isCountTrap": 1,
    "trap_effect": "sfx_magicsnake_sqly_floor_lod2_prf,LowRange_B",
    "is_snake_field": 1
  },
  "Launch_Range": 6,
  "AutoCondition": [
    {
      "type": 8,
      "no_target": 1
    }
  ],
  "FashionAttackAct": "use_skill14"
}