【战斗】添加一些战斗日志

dev_chengFeng
gaoxin 2021-08-31 14:25:29 +08:00
parent c67c9fb93b
commit 93413b3b07
3 changed files with 31 additions and 28 deletions

View File

@ -2247,6 +2247,15 @@ local passivityList = {
local i1 = args[4]
-- 释放技能后
local onSkillEnd = function(skill)
BattleLogManager.Log(
"Passive 119",
"camp", role.camp,
"pos", role.position,
"isSkill", tostring(skill ~= nil),
"isTriggerJudge", tostring(skill.isTriggerJudge),
"type", tostring(skill.type),
"judge", tostring(judge)
)
if skill and not skill.isTriggerJudge and judge==1 then
return
end

View File

@ -424,15 +424,6 @@ function RoleLogic:AddSkill(type, isRage, isAdd, targets)
end
SkillManager.AddSkill(self, effectData, type, targets, isAdd, isRage,isTriggerJudge)
--
BattleLogManager.Log(
"Add Skill",
"camp", self.camp,
"pos", self.position,
"type", type,
"isRage", tostring(isRage),
"isAdd", tostring(isAdd),
"targets", targets and #targets or "0"
)
end
--加入额外技能,用于额外释放技能 by:王振兴
@ -450,15 +441,6 @@ function RoleLogic:InsertExtraSkill(id,type)
end
--和老史,佳琦确认果 附加技能算绝技 被沉默无法释放 可以套娃 递归触发 by:王振兴
SkillManager.InsertSkill(self, effectData, skillType, nil, true, false,isTrigger)
BattleLogManager.Log(
"Insert Extra Skill",
"camp", self.camp,
"pos", self.position,
"type", skillType,
"isRage", tostring(false),
"isAdd", tostring(true),
"targets", targets and #targets or "0"
)
end
end
@ -468,16 +450,6 @@ function RoleLogic:InsertSkill(type, isRage, isAdd, targets)
if not self.IsCanAddSkill and isAdd then return end
local effectData = type == BattleSkillType.Normal and self.skill or self.superSkill
SkillManager.InsertSkill(self, effectData, type, targets, isAdd, isRage)
--
BattleLogManager.Log(
"Insert Skill",
"camp", self.camp,
"pos", self.position,
"type", type,
"isRage", tostring(isRage),
"isAdd", tostring(isAdd),
"targets", targets and #targets or "0"
)
end
-- 设置是否可以追加技能
function RoleLogic:SetIsCanAddSkill(isCan)

View File

@ -49,6 +49,16 @@ function this.AddSkill(caster, effectData, type, targets, isAdd, isRage,isTrigge
if not this.CheckMaxCount() then
return
end
BattleLogManager.Log(
"Add Skill",
"camp", caster.camp,
"pos", caster.position,
"type", type,
"isRage", tostring(isRage),
"isAdd", tostring(isAdd),
"isTriggerJudge", tostring(isTriggerJudge),
"targets", targets and #targets or "0"
)
local skill = skillPool:Get()
skill:Init(caster, effectData, type, targets, isAdd, isRage,isTriggerJudge)
if type == BattleSkillType.DeadSkill then -- 死亡技能加入单独的对列
@ -64,6 +74,18 @@ function this.InsertSkill(caster, effectData, type, targets, isAdd, isRage,isTri
if not this.CheckMaxCount() then
return
end
BattleLogManager.Log(
"Insert Skill",
"camp", caster.camp,
"pos", caster.position,
"type", type,
"isRage", tostring(isRage),
"isAdd", tostring(isAdd),
"isTriggerJudge", tostring(isTriggerJudge),
"isLoop", tostring(isLoop),
"targets", targets and #targets or "0"
)
local skill = skillPool:Get()
--角色被混乱后