[战斗]=========效果130修改

dev_chengFeng
wangzhenxing 2021-10-20 22:00:01 +08:00
parent 24f0812b9f
commit 7b7879ce89
3 changed files with 22 additions and 21 deletions

View File

@ -2442,7 +2442,9 @@ local effectList = {
local round = args[3] local round = args[3]
BattleLogic.WaitForTrigger(interval, function () BattleLogic.WaitForTrigger(interval, function ()
local damage=floor(caster.teamDamage*f1)+v1 local damage=floor(caster.teamDamage*f1)+v1
target:AddBuff(Buff.Create(caster, BuffName.DOT,round, 1,3,damage)) local buff=Buff.Create(caster, BuffName.DOT,round, 1,3,damage)
buff.isRealDamage=true
target:AddBuff(buff)
end) end)
end, end,
--对目标造成神佑状态,造成主角战斗力[a]%+[b]的血量,持续[c]回合,溢出部分转化为御甲 --对目标造成神佑状态,造成主角战斗力[a]%+[b]的血量,持续[c]回合,溢出部分转化为御甲

View File

@ -19,14 +19,14 @@ function DOT:SetData(...)
-- 刷新排序等级 -- 刷新排序等级
self.sort = 2 self.sort = 2
if self.damageType == 3 then -- 流血buff在行动之后刷新 -- if self.damageType == 3 then -- 流血buff在行动之后刷新
self.sort = 3 -- self.sort = 3
end -- end
end end
--初始化后调用一次 --初始化后调用一次
function DOT:OnStart() function DOT:OnStart()
if self.caster.isTeam then if self.caster.isTeam or self.caster.type == BattleUnitType.Player then
self.isRealDamage = true self.isRealDamage = true
end end
end end

View File

@ -1,7 +1,7 @@
MCondition = {} MCondition = {}
local this = MCondition local this = MCondition
local castRound=0 local skillRound={}
local _ConditionConfig = { local _ConditionConfig = {
[0] = function(skill, condition) --0:无限制条件 [0] = function(skill, condition) --0:无限制条件
return true return true
@ -141,19 +141,18 @@ local _ConditionConfig = {
-- 获取当前回合 -- 获取当前回合
return true --return true
-- local curRound = BattleLogic.GetCurRound() local curRound = BattleLogic.GetCurRound()
-- if castRound==0 then if not skillRound[skill.id] then
-- castRound=curRound skillRound[skill.id]=curRound
-- return true return true
-- else else
-- if curRound==castRound+comValue then if curRound==skillRound[skill.id]+comValue then
-- castRound=curRound skillRound[skill.id]=curRound
-- LogError("22222") return true
-- return true end
-- end end
-- end return false
-- return false
end, end,
} }
@ -170,8 +169,8 @@ end
-- 清除缓存 -- 清除缓存
function MCondition.ClearCache() function MCondition.ClearCache()
if castRound then if skillRound then
castRound=0 skillRound={}
end end
end end