From 824841e6f16fa302ecdce09a4ab29912902d8492 Mon Sep 17 00:00:00 2001 From: chenxi Date: Tue, 25 Apr 2023 16:20:18 +0800 Subject: [PATCH 1/4] =?UTF-8?q?buff=E7=A0=B4=E8=A3=82=E7=89=B9=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/common/bi_report.lua | 2 +- lua/app/module/battle/team/battle_team.lua | 10 ++++++++++ lua/app/module/login/login_manager.lua | 3 ++- lua/app/userdata/battle/skill/battle_buff_entity.lua | 4 ++++ 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/lua/app/common/bi_report.lua b/lua/app/common/bi_report.lua index 84c6ac00..4bd36c6c 100644 --- a/lua/app/common/bi_report.lua +++ b/lua/app/common/bi_report.lua @@ -370,7 +370,7 @@ function BIReport:postPurchase(price, content, originOrderId, orderId) CS.BF.BFMain.Instance.SDKMgr.BFLoginSDKMgr.FBSdk:LogPurchase(price, "USD", json.encode(fbArgs)) -- 上报付费到adjust - CS.BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr:PostAdjustRevenueTrackEvent("qm803c", price, "USD") + CS.BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr:PostAdjustRevenueTrackEvent("naoyh8", price, "USD") end -- 上报等级提升事件,单独处理,只上报到AF和FB,不上报数数 diff --git a/lua/app/module/battle/team/battle_team.lua b/lua/app/module/battle/team/battle_team.lua index d753823b..3e51ee44 100644 --- a/lua/app/module/battle/team/battle_team.lua +++ b/lua/app/module/battle/team/battle_team.lua @@ -282,6 +282,16 @@ function BattleTeam:updateBuffState(buff, num) end end end + local fxDisappear = buff:getFxDisappear() + if fxDisappear then + local fxCfg = BattleHelper:getFxConfig() + for k, v in ipairs(fxDisappear) do + local fxInfo = fxCfg[v] + if fxInfo then + self.mainUnit:getEffectAndPlay(fxInfo, false) + end + end + end elseif buffNum == 1 then -- 新添加buff local fxList = buff:getFxContinued() if fxList then diff --git a/lua/app/module/login/login_manager.lua b/lua/app/module/login/login_manager.lua index 20bc371b..36eb9db3 100644 --- a/lua/app/module/login/login_manager.lua +++ b/lua/app/module/login/login_manager.lua @@ -18,7 +18,8 @@ end ---- 登录界面资源加载完毕后调用 function LoginManager:loginGame() - BIReport:postAdjustSimpleTrackEvent("modt3z", {}) + -- adjust 打开应用事件识别码 + BIReport:postAdjustSimpleTrackEvent("xbszrl", {}) CS.BF.BFMain.IsGotServerTime = true ServerDataManager:dataOperate(GConst.ServerDataConst.DATA_OP_BEHAVIOR.SYNC_DATA, GConst.EMPTY_TABLE, function(msgData) diff --git a/lua/app/userdata/battle/skill/battle_buff_entity.lua b/lua/app/userdata/battle/skill/battle_buff_entity.lua index fe7eeee3..8537856e 100644 --- a/lua/app/userdata/battle/skill/battle_buff_entity.lua +++ b/lua/app/userdata/battle/skill/battle_buff_entity.lua @@ -90,4 +90,8 @@ function BattleBuffEntity:getFxTake() return self.buffInfo.fx_take end +function BattleBuffEntity:getFxDisappear() + return self.buffInfo.fx_disappear +end + return BattleBuffEntity \ No newline at end of file From 2600c22d08de33e39066a4b4eb59a85364d783d0 Mon Sep 17 00:00:00 2001 From: chenxi Date: Tue, 25 Apr 2023 16:21:21 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/config/chapter_board.lua | 4 +- lua/app/config/monster_chapter.lua | 14 +++--- lua/app/config/skill.lua | 58 +++++++++++++++++++---- lua/app/config/strings/cn/skill_rogue.lua | 4 +- lua/app/config/strings/en/global.lua | 10 ++-- lua/app/config/strings/en/skill_rogue.lua | 4 +- 6 files changed, 65 insertions(+), 29 deletions(-) diff --git a/lua/app/config/chapter_board.lua b/lua/app/config/chapter_board.lua index 559646c3..61586374 100644 --- a/lua/app/config/chapter_board.lua +++ b/lua/app/config/chapter_board.lua @@ -4620,7 +4620,7 @@ local chapter_board = { }, { 4, - 0 + 2 }, { 0, @@ -4636,7 +4636,7 @@ local chapter_board = { }, { 4, - 0 + 2 }, { 1, diff --git a/lua/app/config/monster_chapter.lua b/lua/app/config/monster_chapter.lua index 4ddd26a0..712ecf5b 100644 --- a/lua/app/config/monster_chapter.lua +++ b/lua/app/config/monster_chapter.lua @@ -1967,11 +1967,10 @@ local monster_chapter = { 10030, 10031 }, - ["skill"]={ - 10032 - }, ["passive_skill"]={ - 10033 + 10032, + 10033, + 10083 }, ["monster_exp"]=22000 }, @@ -2232,11 +2231,10 @@ local monster_chapter = { 10030, 10031 }, - ["skill"]={ - 10032 - }, ["passive_skill"]={ - 10033 + 10032, + 10033, + 10083 }, ["monster_exp"]=22000 } diff --git a/lua/app/config/skill.lua b/lua/app/config/skill.lua index 1275f509..fa352851 100644 --- a/lua/app/config/skill.lua +++ b/lua/app/config/skill.lua @@ -92,6 +92,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=2, ["shake_time"]=100, ["shake_type"]=1, @@ -224,6 +225,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=2, ["shake_time"]=100, ["shake_type"]=1, @@ -408,6 +410,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=2, ["shake_time"]=100, ["shake_type"]=1, @@ -528,7 +531,7 @@ local skill = { ["eliminate_obj"]=1, ["skill_position"]=2, ["sound_hit"]=2300111, - ["name_act"]="attack04", + ["name_act"]="skill01", ["fx_target"]=300029 }, [3200110]={ @@ -543,6 +546,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=2, ["shake_time"]=100, ["shake_type"]=1, @@ -562,6 +566,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=1, ["shake_time"]=100, ["shake_type"]=1, @@ -583,6 +588,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=1, ["shake_time"]=100, ["shake_type"]=1, @@ -604,6 +610,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=1, ["shake_time"]=100, ["shake_type"]=1, @@ -625,6 +632,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=1, ["shake_time"]=100, ["shake_type"]=1, @@ -652,6 +660,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=1, ["shake_time"]=100, ["shake_type"]=1, @@ -673,6 +682,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=2, ["shake_time"]=100, ["shake_type"]=1, @@ -692,6 +702,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=2, ["shake_time"]=100, ["shake_type"]=1, @@ -711,6 +722,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=2, ["shake_time"]=100, ["shake_type"]=1, @@ -730,6 +742,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=2, ["shake_time"]=100, ["shake_type"]=1, @@ -749,6 +762,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=2, ["shake_time"]=100, ["shake_type"]=1, @@ -774,6 +788,7 @@ local skill = { ["round"]=1 } }, + ["obj"]=1, ["skill_position"]=2, ["sound_hit"]=3300120, ["name_act"]="skill01", @@ -791,6 +806,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=2, ["shake_time"]=100, ["shake_type"]=1, @@ -811,6 +827,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=2, ["shake_time"]=100, ["shake_type"]=1, @@ -830,6 +847,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=2, ["shake_time"]=100, ["shake_type"]=1, @@ -849,6 +867,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=2, ["shake_time"]=100, ["shake_type"]=1, @@ -868,6 +887,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=2, ["shake_time"]=100, ["shake_type"]=1, @@ -906,6 +926,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=2, ["shake_time"]=100, ["shake_type"]=1, @@ -926,6 +947,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=2, ["shake_time"]=100, ["shake_type"]=1, @@ -945,6 +967,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=2, ["shake_time"]=100, ["shake_type"]=1, @@ -964,6 +987,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=2, ["shake_time"]=100, ["shake_type"]=1, @@ -983,6 +1007,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=2, ["shake_time"]=100, ["shake_type"]=1, @@ -1014,6 +1039,7 @@ local skill = { ["round"]=1 } }, + ["obj"]=2, ["skill_position"]=2, ["shake_time"]=100, ["shake_type"]=3, @@ -1066,6 +1092,7 @@ local skill = { ["round"]=1 } }, + ["obj"]=2, ["skill_position"]=2, ["shake_time"]=100, ["shake_type"]=3, @@ -1088,6 +1115,7 @@ local skill = { ["round"]=0 } }, + ["obj"]=2, ["skill_position"]=2, ["shake_time"]=100, ["shake_type"]=1, @@ -1213,7 +1241,7 @@ local skill = { ["effect"]={ { ["type"]="shield_rebound_200", - ["num"]=1000, + ["num"]=20000, ["ratio"]=10000, ["round"]=1 } @@ -1819,15 +1847,9 @@ local skill = { ["num"]=40000, ["ratio"]=10000, ["round"]=0 - }, - { - ["type"]="hit_heal", - ["num"]=60000, - ["ratio"]=10000, - ["round"]=1 } }, - ["obj"]=2, + ["obj"]=1, ["skill_position"]=1, ["cd"]=2, ["cd_start"]=1 @@ -2729,9 +2751,25 @@ local skill = { ["sound_hit"]=10082, ["name_act"]="skill01", ["fx_self"]=200039 + }, + [10083]={ + ["effect_type"]=2, + ["trigger"]=5, + ["effect"]={ + { + ["type"]="heal", + ["num"]=100, + ["ratio"]=10000, + ["round"]=1 + } + }, + ["obj"]=1, + ["skill_position"]=2, + ["cd"]=2, + ["cd_start"]=1 } } local config = { -data=skill,count=139 +data=skill,count=140 } return config \ No newline at end of file diff --git a/lua/app/config/strings/cn/skill_rogue.lua b/lua/app/config/strings/cn/skill_rogue.lua index 45f59f42..b37d00a8 100644 --- a/lua/app/config/strings/cn/skill_rogue.lua +++ b/lua/app/config/strings/cn/skill_rogue.lua @@ -177,7 +177,7 @@ local skill_rogue = { ["desc"]="生成的魔法罩如果没有破可以额外持续1回合" }, [200403]={ - ["desc"]="魔法罩存在时可反伤对方造成400%伤害" + ["desc"]="魔法罩存在时可反伤对方造成200%伤害" }, [200500]={ ["desc"]="舞步消散:将左右2格元素进行消除" @@ -216,7 +216,7 @@ local skill_rogue = { ["desc"]="巨剑连斩被连接消除其斜方向的4个元素" }, [200800]={ - ["desc"]="霜冻剑舞:白发凯瑟琳可额外造成1次伤害并给敌人1回合冰霜效果(普攻次数-1)" + ["desc"]="霜冻剑舞:造成1次伤害并施加1回合冰霜效果" }, [200801]={ ["desc"]="霜冻剑舞被使用时可消除掉其上下左右4个元素" diff --git a/lua/app/config/strings/en/global.lua b/lua/app/config/strings/en/global.lua index 692b9661..ac2ecff1 100644 --- a/lua/app/config/strings/en/global.lua +++ b/lua/app/config/strings/en/global.lua @@ -12,19 +12,19 @@ local localization_global = ["BTN_TEXT_OK"] = "Confirm", ["BATTLE_DESC_1"] = "Quit battle?", ["ITEM_NOT_ENOUGH"] = "Insufficient {0}", - ["START_DESC"] = "start", + ["START_DESC"] = "Start", ["ELEMENT_NAME_1"] = "Red Elements", ["ELEMENT_NAME_2"] = "Golden Elements", ["ELEMENT_NAME_3"] = "Green Elements", ["ELEMENT_NAME_4"] = "Blue Elements", ["ELEMENT_NAME_5"] = "Purple Elements", - ["HERO_DESC_1"] = "Level{0}", + ["HERO_DESC_1"] = "Lv.{0}", ["HERO_DESC_2"] = "HP", ["HERO_DESC_3"] = "Attack", ["HERO_DESC_4"] = "Upgrade", ["HERO_DESC_5"] = "Activate", - ["HERO_DESC_6"] = "unlocked", - ["HERO_DESC_7"] = "locked", + ["HERO_DESC_6"] = "Unlocked", + ["HERO_DESC_7"] = "Locked", ["GET_REWARDS_DESC"] = "Rewards Obtained", ["CLICK_CLOSE_DESC"] = "Tap to close", ["REWARD_DESC"] = "Rewards", @@ -38,7 +38,7 @@ local localization_global = ["REWARD_PREVIEW_DESC"] = "Reward Overview", ["HERO_DESC_8"] = "Use", ["HERO_DESC_9"] = "Info", - ["HERO_DESC_10"] = "Unlock when completing chapter {0}", + ["HERO_DESC_10"] = "Unlock after chapter {0}", ["BATTLE_DESC_8"] = "Additional heroes available for deploying", ["MAIN_BTN_2"] = "Hero", ["MAIN_DESC_1"] = "Chapter {0}", diff --git a/lua/app/config/strings/en/skill_rogue.lua b/lua/app/config/strings/en/skill_rogue.lua index 76b8acd3..3f5e9932 100644 --- a/lua/app/config/strings/en/skill_rogue.lua +++ b/lua/app/config/strings/en/skill_rogue.lua @@ -177,7 +177,7 @@ local skill_rogue = { ["desc"]="Magic Shield lasts for 1 more round if it isn’t destroyed" }, [200403]={ - ["desc"]="Magic Shield reflects and deals 400% damage back to the enemy when activated" + ["desc"]="Magic Shield reflects and deals 200% damage back to the enemy when activated" }, [200500]={ ["desc"]="Disperse in Dance: Clears elements on 2 tiles on the left and right" @@ -216,7 +216,7 @@ local skill_rogue = { ["desc"]="Great Sword Combos clears 4 elements on the diagonal directions when connected" }, [200800]={ - ["desc"]="Frosty Blade Dance: White-Hair Catherine deals extra damage for 1 time and applies Frost status on the enemy for 1 round (normal attack hits -1)" + ["desc"]="Frosty Blade Dance: Deal the damage for 1 hit and applies Frost status for 1 round" }, [200801]={ ["desc"]="When performing Frosty Blade Dance, clears 4 elements on the top, bottom, left and right side" From 79b546d2f8765340322c3701bceef0f1570cd681 Mon Sep 17 00:00:00 2001 From: chenxi Date: Tue, 25 Apr 2023 17:37:27 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/config/chapter.lua | 28 +++++++++++++++-------- lua/app/config/fx.lua | 2 +- lua/app/config/skill.lua | 12 ++++------ lua/app/config/skill_rogue.lua | 15 +++++++----- lua/app/config/strings/cn/skill_rogue.lua | 2 +- lua/app/config/strings/en/skill_rogue.lua | 2 +- 6 files changed, 36 insertions(+), 25 deletions(-) diff --git a/lua/app/config/chapter.lua b/lua/app/config/chapter.lua index f88467ed..06ffb3e6 100644 --- a/lua/app/config/chapter.lua +++ b/lua/app/config/chapter.lua @@ -4,6 +4,7 @@ local chapter = { ["icon"]="chapter_1", ["scene"]="bg_1", ["block_icon"]="battle_hinder_1", + ["chess_board"]="chessboard_1", ["board"]={ 1 }, @@ -78,7 +79,8 @@ local chapter = { ["next_chapter"]=3, ["icon"]="chapter_2", ["scene"]="bg_2", - ["block_icon"]="battle_hinder_1", + ["block_icon"]="battle_hinder_2", + ["chess_board"]="chessboard_1", ["board"]={ 2, 3 @@ -180,7 +182,8 @@ local chapter = { ["next_chapter"]=4, ["icon"]="chapter_3", ["scene"]="bg_3", - ["block_icon"]="battle_hinder_1", + ["block_icon"]="battle_hinder_3", + ["chess_board"]="chessboard_1", ["board"]={ 4, 5, @@ -277,7 +280,8 @@ local chapter = { ["next_chapter"]=5, ["icon"]="chapter_4", ["scene"]="bg_4", - ["block_icon"]="battle_hinder_1", + ["block_icon"]="battle_hinder_4", + ["chess_board"]="chessboard_1", ["board"]={ 7, 8, @@ -407,7 +411,8 @@ local chapter = { ["next_chapter"]=6, ["icon"]="chapter_5", ["scene"]="bg_5", - ["block_icon"]="battle_hinder_1", + ["block_icon"]="battle_hinder_5", + ["chess_board"]="chessboard_2", ["board"]={ 11, 12, @@ -537,7 +542,8 @@ local chapter = { ["next_chapter"]=7, ["icon"]="chapter_6", ["scene"]="bg_5", - ["block_icon"]="battle_hinder_1", + ["block_icon"]="battle_hinder_5", + ["chess_board"]="chessboard_2", ["board"]={ 15, 16, @@ -667,7 +673,8 @@ local chapter = { ["next_chapter"]=8, ["icon"]="chapter_7", ["scene"]="bg_6", - ["block_icon"]="battle_hinder_1", + ["block_icon"]="battle_hinder_6", + ["chess_board"]="chessboard_2", ["board"]={ 19, 20, @@ -797,7 +804,8 @@ local chapter = { ["next_chapter"]=9, ["icon"]="chapter_8", ["scene"]="bg_6", - ["block_icon"]="battle_hinder_1", + ["block_icon"]="battle_hinder_6", + ["chess_board"]="chessboard_2", ["board"]={ 23, 24, @@ -935,7 +943,8 @@ local chapter = { ["next_chapter"]=10, ["icon"]="chapter_9", ["scene"]="bg_7", - ["block_icon"]="battle_hinder_1", + ["block_icon"]="battle_hinder_7", + ["chess_board"]="chessboard_2", ["board"]={ 27, 28, @@ -1072,7 +1081,8 @@ local chapter = { ["before_chapter"]=9, ["icon"]="chapter_10", ["scene"]="bg_7", - ["block_icon"]="battle_hinder_1", + ["block_icon"]="battle_hinder_7", + ["chess_board"]="chessboard_2", ["board"]={ 31, 32, diff --git a/lua/app/config/fx.lua b/lua/app/config/fx.lua index 32f1ff40..6dcf444c 100644 --- a/lua/app/config/fx.lua +++ b/lua/app/config/fx.lua @@ -327,7 +327,7 @@ local fx = { ["bind"]="root" }, [300008]={ - ["res"]="sfx_p0002_b05", + ["res"]="sfx_p0002_b06", ["bind"]="root" }, [300009]={ diff --git a/lua/app/config/skill.lua b/lua/app/config/skill.lua index fa352851..1fc72926 100644 --- a/lua/app/config/skill.lua +++ b/lua/app/config/skill.lua @@ -335,19 +335,18 @@ local skill = { ["effect"]={ { ["type"]="hurt_yellow", - ["num"]=70000, + ["num"]=40000, ["ratio"]=10000, ["round"]=0 } }, ["obj"]=2, - ["skill_position"]=1, + ["skill_position"]=2, ["shake_time"]=100, ["shake_type"]=4, ["sound_hit"]=2200120, ["name_act"]="skill01", ["fx_self"]=300008, - ["fx_self_delay"]=700, ["fx_target"]=4, ["fx_target_delay"]=1100 }, @@ -382,19 +381,18 @@ local skill = { ["effect"]={ { ["type"]="hurt_yellow", - ["num"]=70000, + ["num"]=40000, ["ratio"]=10000, ["round"]=0 } }, ["obj"]=2, - ["skill_position"]=1, + ["skill_position"]=2, ["shake_time"]=100, ["shake_type"]=4, ["sound_hit"]=2200120, ["name_act"]="skill01", ["fx_self"]=300008, - ["fx_self_delay"]=700, ["fx_target"]=4, ["fx_target_delay"]=1100 }, @@ -1241,7 +1239,7 @@ local skill = { ["effect"]={ { ["type"]="shield_rebound_200", - ["num"]=20000, + ["num"]=1000, ["ratio"]=10000, ["round"]=1 } diff --git a/lua/app/config/skill_rogue.lua b/lua/app/config/skill_rogue.lua index 5403c9c6..d595b9a7 100644 --- a/lua/app/config/skill_rogue.lua +++ b/lua/app/config/skill_rogue.lua @@ -402,10 +402,13 @@ local skill_rogue = { ["weight"]=3000, ["qlt"]=2, ["type"]=9, - ["attr"]={ - ["type"]="healp", - ["minnum"]=500, - ["maxnum"]=500 + ["effect"]={ + { + ["type"]="heal", + ["num"]=10000, + ["ratio"]=10000, + ["round"]=1 + } }, ["obj"]=1, ["icon"]="30" @@ -672,7 +675,7 @@ local skill_rogue = { ["round"]=1 } }, - ["obj"]=1, + ["obj"]=5, ["icon"]="63" }, [200102]={ @@ -701,7 +704,7 @@ local skill_rogue = { ["round"]=1 } }, - ["obj"]=1, + ["obj"]=5, ["icon"]="33" }, [200200]={ diff --git a/lua/app/config/strings/cn/skill_rogue.lua b/lua/app/config/strings/cn/skill_rogue.lua index b37d00a8..0691a237 100644 --- a/lua/app/config/strings/cn/skill_rogue.lua +++ b/lua/app/config/strings/cn/skill_rogue.lua @@ -84,7 +84,7 @@ local skill_rogue = { ["desc"]="受到伤害降低5%" }, [29]={ - ["desc"]="角色血量恢复5%" + ["desc"]="恢复部分生命值" }, [30]={ ["desc"]="将场上随机2个非红色元素变为红色" diff --git a/lua/app/config/strings/en/skill_rogue.lua b/lua/app/config/strings/en/skill_rogue.lua index 3f5e9932..2eeaf2cd 100644 --- a/lua/app/config/strings/en/skill_rogue.lua +++ b/lua/app/config/strings/en/skill_rogue.lua @@ -84,7 +84,7 @@ local skill_rogue = { ["desc"]="Reduces Damage Taken by 5%" }, [29]={ - ["desc"]="Restores Character’s HP by 5%" + ["desc"]="Restore part of HP" }, [30]={ ["desc"]="Turns 2 random Non-Red elements into Red" From 9ae6d709e7fe93fba3c07b1d0eabe9f668f014fa Mon Sep 17 00:00:00 2001 From: chenxi Date: Tue, 25 Apr 2023 17:47:05 +0800 Subject: [PATCH 4/4] fix bug --- lua/app/module/battle/component/battle_unit_comp.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/app/module/battle/component/battle_unit_comp.lua b/lua/app/module/battle/component/battle_unit_comp.lua index e732e494..d4dc8d75 100644 --- a/lua/app/module/battle/component/battle_unit_comp.lua +++ b/lua/app/module/battle/component/battle_unit_comp.lua @@ -1168,9 +1168,9 @@ function BattleUnitComp:takeDamageOrCure(atker, num, effectType, effectStatus) end local hp = self.unitEntity:getHp() local x, y = self.baseObject:fastGetLocalPosition() + local damage = num if num < 0 then -- 伤害 local delayTime = 0 - local damage = num if shieldHpDiff < 0 then damage = damage - shieldHpDiff delayTime = BattleConst.EFFECT_NUMBER_DELAY @@ -1200,13 +1200,13 @@ function BattleUnitComp:takeDamageOrCure(atker, num, effectType, effectStatus) local hpPercent = self.unitEntity:getHpPercent() self.battleController:refreshHp(self.side, hp, hpPercent) if atker:getIsCentralizedAttack() then - if self.currState == UNIT_STATE.IDLE then + if damage < 0 and self.currState == UNIT_STATE.IDLE then self:playHurt() end else if self.unitEntity:getIsDead() then self:changeState(UNIT_STATE.DEAD) - elseif self.currState == UNIT_STATE.IDLE then + elseif damage < 0 and self.currState == UNIT_STATE.IDLE then self:playHurt() end end