
Fire strike
Lvl: 1
Attack
Physical
CD: 8 sec
Skill Delay: 1 sec
Range: 4
Heinrich spends his remaining HP to land a deadly attack on the enemy, dealing P.ATK*(remaining HP/50000+2500%) as P.DMG. Uses up all [Charge] stacks, each stack increasing DMG by 10%. After casting this skill, loses 80% of current HP. If the skill kills the target, restores the amount of HP the target had before hit for Heinrich. The cooldown is fixed. [Disaster Fire Strike] ignores the target's DMG reflection, DMG negation, flee, and death negation.
Formula
function CommonFun.calcDamage_68501(srcUser, targetUser, params, damageParam, logger)
local Str = srcUser:GetProperty("Str")
local Dex = srcUser:GetProperty("Dex")
local Luk = srcUser:GetProperty("Luk")
local Atk = srcUser:GetProperty("Atk")
local Vit = srcUser:GetProperty("Vit")
local AtkPer = srcUser:GetProperty("AtkPer")
local DamIncrease = srcUser:GetProperty("DamIncrease")
local IgnoreDef = 0
local IgnoreDef1 = srcUser:GetProperty("IgnoreDef")
local IgnoreDef2 = srcUser:GetProperty("IgnoreEquipDef")
if targetUser.boss or targetUser.mini then
IgnoreDef = IgnoreDef1
else
IgnoreDef = IgnoreDef1 + IgnoreDef2
end
if 1 <= IgnoreDef then
IgnoreDef = 1
end
local Refine = srcUser:GetProperty("Refine")
local Def2 = targetUser:GetProperty("Def")
local DefPer2 = targetUser:GetProperty("DefPer")
local Vit2 = targetUser:GetProperty("Vit")
local VitPer2 = targetUser:GetProperty("VitPer")
local DamReduc2 = CommonFun.calcDamReDuc(srcUser, targetUser)
local RefineDamReduc = targetUser:GetProperty("RefineDamReduc")
local Hp2 = targetUser:GetProperty("Hp")
local MaxHp2 = targetUser:GetProperty("MaxHp")
local damChangePer = damageParam.damChangePer
local AttrEffect = srcUser:GetProperty("AttrEffect")
local bits = CommonFun.getBits(AttrEffect)
local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
local bodyparam = CommonFun.CalcBodyParam(srcUser, targetUser, params, damageParam, logger)
local elementparam = CommonFun.CalcElementParam(srcUser, targetUser, params, damageParam, logger)
local bossparam = CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger)
local raceparam2 = CommonFun.CalcRaceParam2(srcUser, targetUser, params, damageParam, logger)
local bodyparam2 = CommonFun.CalcBodyParam2(srcUser, targetUser, params, damageParam, logger)
local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
local bossparam2 = CommonFun.CalcBossParam2(srcUser, targetUser, params, damageParam, logger)
local BaseAtk = Str * 2 + math.floor(Str * Str / 100) + math.floor(Dex / 5) + math.floor(Luk / 5)
local AtkFinal = ((Atk - BaseAtk) * (1 + AtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * bodyparam * elementparam * elementparam2 + BaseAtk) * raceparam * bossparam * bossparam2
local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
local ShortRangeDamReduc2 = targetUser:GetProperty("ShortRangeDamReduc")
local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
local MaxSp = targetUser:GetProperty("MaxSp")
if skillID == 2734_SAINT:WHITE_STAR_MOON_SAINT:WHITE_STAR_MOON then
AtkFinal = (((Atk - BaseAtk) * (1 + AtkPer) + MaxSp) * CommonFun.ShapeCorrection(srcUser, targetUser) * bodyparam * elementparam * elementparam2 + BaseAtk) * raceparam * bossparam * bossparam2
end
if skillID == 2731_ARCHBISHOP:WHITE_STAR_WIND or skillID == 2732_ARCHBISHOP:WHITE_STAR_FLOWER or skillID == 2733_ARCHBISHOP:WHITE_STAR_SNOW or skillID == 2734_SAINT:WHITE_STAR_MOON_SAINT:WHITE_STAR_MOON or skillID == 2746_SAINT:COUNTER_ATTACK then
local skilllv_bd = srcUser:GetLernedSkillLevel(2745_SAINT:STARLIGHT)
if 0 < skilllv_bd then
damChangePer = (damChangePer + skilllv_bd * 0.2) * (1 + Vit / 600)
end
end
local Num = srcUser:GetBuffLayer(137710_GATHER_MOMENTUM_:MAX_STACK_10)
if skillID == 2740_SAINT:MOONLIGHT_DANCE then
local GemValue = srcUser:GetGemValue(208121_IN_THE_GLIMPSE_STATE_THE_DAMAGE_OF_MOON_DANCE_IS_INCREASED_BY_PERCENTAGE)
damChangePer = damChangePer * (1 + Num * 0.1)
if srcUser:HasBuffID(137700_PHANTOM_OF_POWER_:MAX_STACK_0) then
damChangePer = damChangePer * (1 + GemValue / 100000)
end
end
local Hp = srcUser:GetProperty("Hp")
local MaxHp = srcUser:GetProperty("MaxHp")
if skillID == 2741_SAINT:FIRE_STRIKE then
local mapid, maptype = srcUser:GetMapInfo()
local pvpRatio = 1
if maptype == PVP_MAPS then
pvpRatio = 0.25
end
damChangePer = (damChangePer + Hp * pvpRatio / 50000) * (1 + Num * 0.1)
end
local tx_lv = srcUser:GetLernedSkillLevel(2730_ARCHBISHOP:WHITE_STAR)
local NormalAtkDam = srcUser:GetProperty("NormalAtkDam")
local NormalEnd = 1 + NormalAtkDam
if 7 <= tx_lv then
damChangePer = damChangePer * NormalEnd
end
if srcUser:HasBuffID(137720_NOBLE_BLOODLINE_:MAX_STACK_0) then
local xm_lv = srcUser:GetLernedSkillLevel(2737_SAINT:UNYIELDING)
if 0.6 <= Hp / MaxHp then
damChangePer = damChangePer * (1 + 0.05 * xm_lv)
end
end
local A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - ShortRangeDamReduc2) - Vit2 * (1 + VitPer2)
local CriDamPer = srcUser:GetProperty("CriDamPer")
local CriDefPer2 = targetUser:GetProperty("CriDefPer")
local fushou = srcUser:GetEquipTypeByPos(1)
local wuqi = srcUser:GetEquipTypeByPos(7)
local WeaponNum = 0
if fushou == 180 or fushou == 250 then
WeaponNum = WeaponNum + 1
end
if wuqi == 180 or wuqi == 250 then
WeaponNum = WeaponNum + 1
end
local Rate = (7 + 4 * tx_lv) * WeaponNum
if 4 <= tx_lv then
Rate = (7 + 4 * tx_lv) * WeaponNum + Num * 3
end
if CommonFun.IsInRate(Rate, srcUser:GetRandom()) then
A = (AtkFinal * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - ShortRangeDamReduc2) - Vit2 * (1 + VitPer2)
return math.max(A * (1.5 + CriDamPer - CriDefPer2), 1), CommonFun.DamageType.Crit
end
if A <= 1 then
return 1
end
return A
end
Self 8381
function CommonFun.calcBuff_8381(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local Hp = srcUser:GetProperty("Hp")
local A = -Hp * 0.8
return A
end
Enemy 8383
function CommonFun.calcBuff_8383(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local MaxHp = targetUser:GetProperty("MaxHp")
local GemValue = srcUser:GetGemValue(208101_WHEN_USING_STRIKE_OF_FIRE_THE_ENEMY_LOSES_PERCENTAGE_OF_THEIR_MAXIMUM_HEALTH_AFTER_1_SECOND)
local A = -GemValue / 100000 * MaxHp
local B = -GemValue / 100000
A = CommonFun.calcBuff_6(srcUser, targetUser, B, 0, c, d, lv)
return A
end
Self
{
"id": 137790,
"BuffName": "Delete all 【 gather momentum 】",
"BuffRate": {
"Odds": 100
},
"Condition": {
"time": 0.5,
"type": "AfterTime"
},
"BuffEffect": {
"type": "DelBuff",
"layer": [
{
"id": 137710,
"layer": 10
}
]
}
}
Self
{
"id": 137800,
"BuffName": "Fire Robbery Strike (reduce blood to 1)",
"BuffRate": {
"Odds": 100
},
"BuffEffect": {
"Hp": {
"type": 8381
},
"type": "HSPChange"
}
}
Enemy
{
"id": 137803,
"BuffName": "Fire Robbery Strike (Rune Life Drain)",
"BuffRate": {
"Odds": 100
},
"Condition": {
"time": 1,
"type": "AfterTime"
},
"BuffEffect": {
"Hp": {
"type": 8383
},
"type": "HSPChange"
}
}
Formula
{
"CD": 8,
"id": 2741001,
"Buff": {
"self": [
137790,
137800
],
"enemy": [
137803
]
},
"Cost": 1,
"Desc": [
{
"id": 2741000,
"params": [
2500
]
}
],
"Icon": "skill_2741001",
"Camps": "Enemy",
"FixCD": 1,
"Level": 1,
"Logic": "SkillTargetBehindRect",
"Damage": [
{
"type": 68501,
"damChangePer": 25
}
],
"DescId": "##42531614",
"NameZh": "##2833999",
"DamTime": {
"type": 1,
"value": 6
},
"DelayCD": 1,
"Fire_EP": 3,
"Pvp_buff": {
"self": [
137790,
137800
],
"enemy": [
137803
]
},
"RollType": 1,
"SkillHit": 1,
"AttackAct": [
"use_skill5"
],
"Attack_EP": 2,
"Contidion": {
"skillid": 2739008
},
"SE_attack": "Skill/skill_hero_haiyinlixi_katana_attack_01",
"SkillType": "Attack",
"Target_EP": 3,
"DamageType": 1,
"E_Attack_On": 1,
"Logic_Param": {
"width": 1,
"must_kill": 1,
"range_num": 1,
"forward_offset": 0,
"behind_distance": 2,
"block_reflection": 1
},
"Launch_Range": 4,
"AttackEffects": [
{
"type": 1,
"speed": 60,
"direction": "forward",
"target_behind": 2
}
],
"FashionAttackAct": "use_skill4_Ninja"
}