【战斗】=====buff图标显示销毁修改

dev_chengFeng
wangzhenxing 2021-12-06 13:18:50 +08:00
parent 6bf98e7c9f
commit acc1be3885
3 changed files with 11 additions and 0 deletions

View File

@ -18,10 +18,16 @@ local onRageChange=function(caster,target,func,type,value)
end
local onSkillCast=function(skill)
if skill.type~=BattleSkillType.Special and skill.type~=BattleSkillType.Extra and skill.type~=BattleSkillType.DeadSkill then
return
end
skill.owner.Event:AddEvent(BattleEventName.RecordRageChange,onRageChange,nil,nil,skill.owner)
end
local onSkillCastEnd=function(skill)
if skill.type~=BattleSkillType.Special and skill.type~=BattleSkillType.Extra and skill.type~=BattleSkillType.DeadSkill then
return
end
skill.owner.Event:RemoveEvent(BattleEventName.RecordRageChange,onRageChange,nil,nil,skill.owner)
end

View File

@ -25,6 +25,7 @@ function Monster:Init(data)
self.teamDamage=data.teamDamage
self.roleData = data
self.sex=data.sex
self.addAttack=0
self.data:Init(self, data.property)
self.buffFilter:Clear() --buff屏蔽列表
self.Event:ClearEvent()

View File

@ -58,6 +58,7 @@ local function _GetBuffEffectConfig(buff)
cType = 1
elseif bType==BuffName.CommonSign then
cType = 1
end
local type = BuffTypeToConfigType[bType]
@ -342,6 +343,9 @@ function BuffCtrl:RemoveBuffIcon(buff)
end
return
end
else
self.BuffIconList[key]:Dispose()
self.BuffIconList[key] = nil
end
end
end