【战斗】===========被动294修改,添加免疫提示
parent
64ddcde464
commit
9c1c41c0fe
|
@ -6145,9 +6145,11 @@ local passivityList = {
|
|||
BattleLogic.BuffMgr:QueryBuff(role1, function(buff)
|
||||
if buff.type == BuffName.HOT and buff.caster == role and buff.roundDuration>1 and buff.startRound==BattleLogic.GetCurRound() then
|
||||
buff:ChangeBuffDuration(ct,round)
|
||||
local immune = function(buff)
|
||||
local immune = function(buff,target)
|
||||
if buff.type == BuffName.Control and buff.ctrlType and buff.ctrlType==immune then
|
||||
curRole.Event:DispatchEvent(BattleEventName.ShowHintText, BattleArtFontType.Immune)
|
||||
if target then
|
||||
target.Event:DispatchEvent(BattleEventName.ShowHintText, BattleArtFontType.Immune)
|
||||
end
|
||||
return true
|
||||
end
|
||||
return false
|
||||
|
|
|
@ -248,7 +248,7 @@ function RoleLogic:AddBuff(buff)
|
|||
-- 如果概率为0 或者没有miss
|
||||
if missF == 0 or not BattleUtil.RandomAction(missF, function() BattleLogic.BuffMgr:PutBuff(buff) end) then
|
||||
for i=1, self.buffFilter.size do
|
||||
if self.buffFilter.buffer[i](buff) then
|
||||
if self.buffFilter.buffer[i](buff,self) then
|
||||
BattleLogic.BuffMgr:PutBuff(buff)
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue