[战斗]==========被动263 被动168修改

dev_chengFeng
wangzhenxing 2021-04-01 17:11:54 +08:00
parent 2497735700
commit acfe38c973
1 changed files with 6 additions and 2 deletions

View File

@ -3464,10 +3464,14 @@ local passivityList = {
list[i]:AddBuff(Buff.Create(role, BuffName.Shield, i1, ShieldTypeName.AllReduce, 0.25, 0))
end
end
--如果只有一个人,这个人第一次上无敌盾就返回
if index==1 and #list==1 then
return
end
--如果场上能加无敌盾的不足两个,就给上过无敌盾的在上一个无敌盾 by: wangzhenxing 2021/3/30
if index<2 then
for i = 1,2-index do
if not list[i]:IsRealDead() then
if list[i] and not list[i]:IsRealDead() then
-- 吸血率%25 策划说写死
list[i]:AddBuff(Buff.Create(role, BuffName.Shield, i1, ShieldTypeName.AllReduce, 0.25, 0))
end
@ -5675,7 +5679,7 @@ local passivityList = {
BattleUtil.RandomAction(pro, function()
BattleLogic.BuffMgr:ClearBuff(defRole, function(buff)
if buff.type == BuffName.Immune and (buff.immuneType == 4 or buff.immuneType == 2) then
buff.target.Event:DispatchEvent(BattleEventName.ShowHintText, BattleArtFontType.clear)
-- buff.target.Event:DispatchEvent(BattleEventName.ShowHintText, BattleArtFontType.clear)
return true
end
return false