diff --git a/lua/app/module/battle/component/battle_unit_comp.lua b/lua/app/module/battle/component/battle_unit_comp.lua
index 3a144f3b..3b29809f 100644
--- a/lua/app/module/battle/component/battle_unit_comp.lua
+++ b/lua/app/module/battle/component/battle_unit_comp.lua
@@ -1487,7 +1487,7 @@ function BattleUnitComp:takeEffect(buff, target, conditionResult)
end
end
- if self.unitEntity:getIsFrozen() and buff:getDecr() == BattleConst.BUFF_DECR_TYPE.INCREASE_GAIN then -- 冻结状态,缓存增益buff
+ if self.unitEntity:getIsFrozen() and buff:isIncreaseGain() then -- 冻结状态,缓存增益buff
if buff:getRound() > 0 then
local buffEffect = BattleHelper:getBuffEffect()
buffEffect.buff = buff
diff --git a/lua/app/userdata/battle/skill/battle_buff_entity.lua b/lua/app/userdata/battle/skill/battle_buff_entity.lua
index d64456e3..d35bccfe 100644
--- a/lua/app/userdata/battle/skill/battle_buff_entity.lua
+++ b/lua/app/userdata/battle/skill/battle_buff_entity.lua
@@ -90,6 +90,10 @@ function BattleBuffEntity:getDecr()
return self.buffInfo.decr
end
+function BattleBuffEntity:isIncreaseGain()
+ return self:getDecr() == BattleConst.BUFF_DECR_TYPE.INCREASE_GAIN
+end
+
function BattleBuffEntity:getIcon()
return self.buffInfo.icon
end
@@ -115,7 +119,11 @@ function BattleBuffEntity:getShowName(needRedColor)
self.showNameStr = I18N:getTextWithOtherKey("buff", "name", self:getName(), "show_name")
end
if not self.showNameRedColor and self.showNameStr then
- self.showNameRedColor = "" .. self.showNameStr .. ""
+ if self:isIncreaseGain() then
+ self.showNameRedColor = "" .. self.showNameStr .. ""
+ else
+ self.showNameRedColor = "" .. self.showNameStr .. ""
+ end
end
if needRedColor then
return self.showNameRedColor