【战斗】无用log删除,技能数量限制初始化数据位置错误

dev_chengFeng hotfix/xma/local/1.1.38
gaoxin 2020-11-23 21:36:34 +08:00
parent 5e4f1a5165
commit 34ae0ed497
2 changed files with 2 additions and 5 deletions

View File

@ -1479,7 +1479,6 @@ local passivityList = {
[78] = function(role, args)
local pro = args[1]
local f1 = args[2]
LogBattle("开始治疗")
--这里加一个延时,防止执行时显示层还没有初始化,从而没有表现
BattleLogic.WaitForTrigger(0.05, function()
local val = floor(BattleUtil.FP_Mul(f1, role:GetRoleData(BattlePropList[pro])))
@ -5042,7 +5041,7 @@ local passivityList = {
role.Event:AddEvent(BattleEventName.RoleHit, onHit)
end,
-- 击杀目标后对敌方血量百分比最低两<EFBFBD><EFBFBD><EFBFBD>角色造成[a]%[b]伤害 重写170 一次技能只触发一次被动
-- 击杀目标后对敌方血量百分比最低两角色造成[a]%[b]伤害 重写170 一次技能只触发一次被动
-- a[float]b[伤害类型]
[253] = function(role, args)
local f1 = args[1]
@ -5427,7 +5426,6 @@ local passivityList = {
local sta3=args[3]
local skiller=nil
local immune = function(buff)
LogError(buff.damageType)
return buff.type == BuffName.DOT and (buff.damageType==sta2 or buff.damageType==sta3)
end
local curBuff=nil

View File

@ -13,12 +13,11 @@ this.IsSkilling = false
this.MaxSkillCount = 20 -- 单个回合内最多释放20次技能
-- 初始化
function this.Init()
this.CurSkillCount = 0
this.Clear()
end
function this.CheckMaxCount()
-- 清除数量限制
this.CurSkillCount = 0
if not this.CurSkillCount then
this.CurSkillCount = 0
end