禁锢
This commit is contained in:
parent
af0c61130d
commit
9a9d4447ac
@ -54,7 +54,8 @@ local function _undeadOff(buffSender, target, buff, buffEffect)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function _imprisonOn(buffSender, buff, target, buffEffect)
|
local function _imprisonOn(buffSender, buff, target, buffEffect)
|
||||||
return target.unitEntity:addActiveSkillLimit(buff:getName())
|
target.unitEntity:addActiveSkillLimit(buff:getName())
|
||||||
|
return 1
|
||||||
end
|
end
|
||||||
|
|
||||||
local function _imprisonOff(buffSender, target, buff, buffEffect)
|
local function _imprisonOff(buffSender, target, buff, buffEffect)
|
||||||
@ -65,7 +66,8 @@ local function _frozenOn(buffSender, buff, target, buffEffect)
|
|||||||
if not target.unitEntity:getIsFrozen() then
|
if not target.unitEntity:getIsFrozen() then
|
||||||
target:putCacheBuffByDecr(BattleConst.BUFF_DECR_TYPE.INCREASE_GAIN)
|
target:putCacheBuffByDecr(BattleConst.BUFF_DECR_TYPE.INCREASE_GAIN)
|
||||||
end
|
end
|
||||||
return target.unitEntity:addLimit(buff:getName(), buffEffect)
|
target.unitEntity:addLimit(buff:getName(), buffEffect)
|
||||||
|
return 1
|
||||||
end
|
end
|
||||||
|
|
||||||
local function _frozenOff(buffSender, target, buff, buffEffect)
|
local function _frozenOff(buffSender, target, buff, buffEffect)
|
||||||
|
|||||||
@ -236,7 +236,6 @@ function BattleTeamEntity:addLimit(name, buffEffect)
|
|||||||
self.frozenCount = self.frozenCount + 1
|
self.frozenCount = self.frozenCount + 1
|
||||||
end
|
end
|
||||||
self.limitAll = self.limitAll + 1
|
self.limitAll = self.limitAll + 1
|
||||||
return 1
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function BattleTeamEntity:removeLimit(name)
|
function BattleTeamEntity:removeLimit(name)
|
||||||
@ -248,7 +247,6 @@ function BattleTeamEntity:removeLimit(name)
|
|||||||
self.frozenCount = self.frozenCount - 1
|
self.frozenCount = self.frozenCount - 1
|
||||||
end
|
end
|
||||||
self.limitAll = self.limitAll - 1
|
self.limitAll = self.limitAll - 1
|
||||||
return 1
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function BattleTeamEntity:getIsLimit()
|
function BattleTeamEntity:getIsLimit()
|
||||||
|
|||||||
@ -339,7 +339,7 @@ function BattleUnitEntity:getActiveSkillLimit()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function BattleUnitEntity:addActiveSkillLimit(name)
|
function BattleUnitEntity:addActiveSkillLimit(name)
|
||||||
self.team:addActiveSkillLimit(name)
|
return self.team:addActiveSkillLimit(name)
|
||||||
end
|
end
|
||||||
|
|
||||||
function BattleUnitEntity:removeActiveSkillLimit(name)
|
function BattleUnitEntity:removeActiveSkillLimit(name)
|
||||||
@ -422,8 +422,10 @@ end
|
|||||||
|
|
||||||
function BattleUnitEntity:onRoundEnd()
|
function BattleUnitEntity:onRoundEnd()
|
||||||
for k, v in ipairs(self.activeSkills) do
|
for k, v in ipairs(self.activeSkills) do
|
||||||
|
if not self:getActiveSkillLimit() then
|
||||||
v:cooldown()
|
v:cooldown()
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return BattleUnitEntity
|
return BattleUnitEntity
|
||||||
Loading…
x
Reference in New Issue
Block a user