【战斗】===========被动294修改,添加免疫提示

dev_chengFeng
wangzhenxing 2021-01-29 18:49:06 +09:00
parent 64ddcde464
commit 9c1c41c0fe
2 changed files with 5 additions and 3 deletions

View File

@ -6145,9 +6145,11 @@ local passivityList = {
BattleLogic.BuffMgr:QueryBuff(role1, function(buff) 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 if buff.type == BuffName.HOT and buff.caster == role and buff.roundDuration>1 and buff.startRound==BattleLogic.GetCurRound() then
buff:ChangeBuffDuration(ct,round) 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 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 return true
end end
return false return false

View File

@ -248,7 +248,7 @@ function RoleLogic:AddBuff(buff)
-- 如果概率为0 或者没有miss -- 如果概率为0 或者没有miss
if missF == 0 or not BattleUtil.RandomAction(missF, function() BattleLogic.BuffMgr:PutBuff(buff) end) then if missF == 0 or not BattleUtil.RandomAction(missF, function() BattleLogic.BuffMgr:PutBuff(buff) end) then
for i=1, self.buffFilter.size do 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) BattleLogic.BuffMgr:PutBuff(buff)
return return
end end