[战斗]=========效果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]
BattleLogic.WaitForTrigger(interval, function ()
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,
--对目标造成神佑状态,造成主角战斗力[a]%+[b]的血量,持续[c]回合,溢出部分转化为御甲

View File

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

View File

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