
Counter Attack Halo
Lvl: 5
Buff
CD: 30 sec
Skill Delay: 2.5 sec
SP: 300
When the Counter Attack Halo is turned on, every time the Divine Avenger is attacked, it will cause Damage (current HP x60%) to enemies within 3 meters (not affected by race, element and size). The Halo lasts for 15 seconds (in PvP and GvG, this effect is 25%)
Lvl: 4
Buff
CD: 30 sec
Skill Delay: 2.5 sec
SP: 250
• When the Counter Attack Halo is turned on, every time the Divine Avenger is attacked, it will cause Damage (current HP x50%) to enemies within 3 meters (not affected by race, element and size). The Halo lasts for 13 seconds (in PvP and GvG, this effect is 25%)
Lvl: 3
Buff
CD: 30 sec
Skill Delay: 2.5 sec
SP: 200
• When the Counter Attack Halo is turned on, every time the Divine Avenger is attacked, it will cause Damage (current HP x40%) to enemies within 3 meters (not affected by race, element and size). The Halo lasts for 11 seconds (in PvP and GvG, this effect is 25%)
Lvl: 2
Buff
CD: 30 sec
Skill Delay: 2.5 sec
SP: 150
• When the Counter Attack Halo is turned on, every time the Divine Avenger is attacked, it will cause Damage (current HP x30%) to enemies within 3 meters (not affected by race, element and size). The Halo lasts for 9 seconds (in PvP and GvG, this effect is 25%)
Lvl: 1
Buff
CD: 30 sec
Skill Delay: 2.5 sec
SP: 100
• When the Counter Attack Halo is turned on, every time the Divine Avenger is attacked, it will cause Damage (current HP x20%) to enemies within 3 meters (not affected by race, element and size). The Halo lasts for 7 seconds (in PvP and GvG, this effect is 25%)
Self 6220
function CommonFun.calcBuff_6220(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local Hp = srcUser:GetProperty("Hp")
if srcUser:HasBuffID(20720160_COUNTER_ATTACK_HALO_USES_MAX_HP_:MAX_STACK_0) then
Hp = srcUser:GetProperty("MaxHp")
end
local mapid, maptype = srcUser:GetMapInfo()
if maptype == PVP_MAPS then
Hp = Hp * 0.25
end
local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
local DamReduc2 = CommonFun.calcDamReDuc(srcUser, targetUser)
local RefineDamReduc = targetUser:GetProperty("RefineDamReduc")
local DamIncrease = srcUser:GetProperty("DamIncrease")
local skilllv = srcUser:GetLernedSkillLevel(3807_ROYAL_GUARD:COUNTER_ATTACK_HALO)
local GemValue = srcUser:GetGemValue(72142_COUNTER_ATTACK_HALO_DMG_PERCENTAGE)
local A = -(Hp * (skilllv * 0.1 + 0.1)) * DefReduc * (1 - DamReduc2) * (1 - RefineDamReduc) * (1 + DamIncrease) * (1 + GemValue / 100000)
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
Self
{
"id": 130050,
"BuffDesc": "Counterstrike Halo on",
"BuffIcon": "skillbuff_commonbuff",
"BuffName": "Counter Attack Halo",
"BuffRate": {
"Odds": 100
},
"BuffType": {
"isgain": 1,
"isdisperse": 1
},
"IconType": 1,
"Condition": {
"type": "BeAttack",
"all_skill": 1
},
"BuffEffect": {
"id": [
130051
],
"type": "AddBuff",
"effect_cd": 0.5
},
"BuffStateID": 130050
}
Self
{
"id": 130051,
"BuffName": "Counter Attack Halo",
"BuffRate": {
"Odds": 100
},
"BuffEffect": {
"Hp": {
"type": 6220
},
"type": "HSPChange"
}
}
Formula
{
"CD": 30,
"id": 3807005,
"Buff": {
"self": [
130050
]
},
"Cost": 1,
"Desc": [
{
"id": 3807000,
"params": [
60,
15
]
}
],
"Icon": "skill_3807001",
"Camps": "Friend",
"Level": 5,
"Logic": "SkillNone",
"DescId": "##171478",
"NameZh": "##159428",
"CastAct": "reading",
"DelayCD": 2.5,
"Fire_EP": 3,
"ItemCost": [
{
"id": 12903,
"count": 1350
}
],
"Pvp_buff": {
"self": [
130050
]
},
"AttackAct": [
"use_skill3_Spear"
],
"Attack_EP": 3,
"SE_attack": "Skill/parry",
"SkillCost": {
"sp": 300
},
"SkillType": "Buff",
"Target_EP": 0,
"DamageType": 4,
"Launch_Range": 0,
"AutoCondition": [
{
"type": 8,
"no_target": 1
}
],
"ExtraMaxLevel": 1
}