Merge branch 'china/dev' of http://60.1.1.230/gaoxin/JL_Client into china/dev
commit
41c646817b
|
|
@ -3458,12 +3458,22 @@ local passivityList = {
|
||||||
BattleUtil.SortByHpFactor(list, 1)
|
BattleUtil.SortByHpFactor(list, 1)
|
||||||
local index = 0
|
local index = 0
|
||||||
for i = 1, #list do
|
for i = 1, #list do
|
||||||
if not list[i]:IsRealDead() and index < 2 then
|
if not list[i]:IsRealDead() and index < 2 and not BattleLogic.BuffMgr:HasBuff(list[i], BuffName.Shield, function (buff) return buff.shieldType == ShieldTypeName.AllReduce and buff.shieldValue~=0 end) then
|
||||||
index = index + 1
|
index = index + 1
|
||||||
-- 吸血率%25 策划说写死
|
-- 吸血率%25 策划说写死
|
||||||
list[i]:AddBuff(Buff.Create(role, BuffName.Shield, i1, ShieldTypeName.AllReduce, 0.25, 0))
|
list[i]:AddBuff(Buff.Create(role, BuffName.Shield, i1, ShieldTypeName.AllReduce, 0.25, 0))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
--如果场上能加无敌盾的不足两个,就给上过无敌盾的在上一个无敌盾 by: wangzhenxing 2021/3/30
|
||||||
|
if index<2 then
|
||||||
|
for i = 1,2-index do
|
||||||
|
if not list[i]:IsRealDead() then
|
||||||
|
-- 吸血率%25 策划说写死
|
||||||
|
list[i]:AddBuff(Buff.Create(role, BuffName.Shield, i1, ShieldTypeName.AllReduce, 0.25, 0))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
role.Event:AddEvent(BattleEventName.SkillCastEnd, onSkillEnd)
|
role.Event:AddEvent(BattleEventName.SkillCastEnd, onSkillEnd)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue