【战斗】=====被动去log
parent
501140fa52
commit
b192d75b07
|
@ -6963,7 +6963,6 @@ local passivityList = {
|
|||
BattleLogic.Event:AddEvent(BattleEventName.RoleAddBuffFail, onRoleAddBuffMiss,nil,nil,role)
|
||||
local onSkillCastEnd= function(skill)
|
||||
local maxNum=#skill:GetDirectTargets()
|
||||
LogError("ctrlnum=="..ctrlNum.."maxNum=="..maxNum)
|
||||
if isCtrl and ctrlNum>=maxNum then
|
||||
BattleUtil.CalRage(role, role,f1, CountTypeName.Add)
|
||||
end
|
||||
|
@ -6981,14 +6980,12 @@ local passivityList = {
|
|||
local OnDead = function(atkRole,skill)
|
||||
local arr=RoleManager.Query(function(v) return v.camp==role.camp and v~=role end)
|
||||
local len=#arr
|
||||
LogError("长度:"..len)
|
||||
local rage1=role.Rage*v1
|
||||
if rage1<len*v2 then
|
||||
rage1=len*v2
|
||||
end
|
||||
local num1=floor(rage1/len)
|
||||
local num2=rage1%len
|
||||
LogError("每人回点数:"..num1.." 多出来的点数:"..num2)
|
||||
for i = 1, len do
|
||||
if i<=num2 then
|
||||
BattleUtil.CalRage(role, arr[i],num1+1, CountTypeName.Add)
|
||||
|
|
Loading…
Reference in New Issue