增加一个生效对象
This commit is contained in:
parent
2f2e9b23eb
commit
51f600d11c
@ -316,8 +316,8 @@ local chapter = {
|
||||
["type_for_nothing"]="Vw==",
|
||||
["id"]=4,
|
||||
["id_for_nothing"]="Ug==",
|
||||
["num"]=1,
|
||||
["num_for_nothing"]="Vw=="
|
||||
["num"]=2,
|
||||
["num_for_nothing"]="VA=="
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
|
||||
@ -265,7 +265,7 @@ local skill_rogue = {
|
||||
["round"]=9999
|
||||
}
|
||||
},
|
||||
["obj"]=1,
|
||||
["obj"]=8,
|
||||
["icon"]="7"
|
||||
},
|
||||
[20]={
|
||||
@ -338,7 +338,7 @@ local skill_rogue = {
|
||||
["round"]=9999
|
||||
}
|
||||
},
|
||||
["obj"]=1,
|
||||
["obj"]=8,
|
||||
["icon"]="10"
|
||||
},
|
||||
[25]={
|
||||
|
||||
@ -201,13 +201,13 @@ local skill_rogue = {
|
||||
["desc"]="跟快速治愈连接线上的元素伤害增加<color=#3cff28>10%</color>"
|
||||
},
|
||||
[200603]={
|
||||
["desc"]="连接快速治愈的每一击都将恢复<color=#3cff28>2%</color>生命值"
|
||||
["desc"]="连接快速治愈的每一击都将<color=#3cff28>恢复</color>生命值"
|
||||
},
|
||||
[200700]={
|
||||
["desc"]="巨剑连斩:每一次攻击的伤害将增加<color=#3cff28>50%</color>"
|
||||
},
|
||||
[200701]={
|
||||
["desc"]="巨剑连被连接消除其上下左右<color=#3cff28>4</color>个元素"
|
||||
["desc"]="巨剑连斩被连接消除其上下左右<color=#3cff28>4</color>个元素"
|
||||
},
|
||||
[200702]={
|
||||
["desc"]="跟巨剑连斩连接线上的元素伤害增加<color=#3cff28>10%</color>"
|
||||
|
||||
@ -201,7 +201,7 @@ local skill_rogue = {
|
||||
["desc"]="Increases the damage of elements connected by the same link of Quick Regen by <color=#3cff28>10%</color>"
|
||||
},
|
||||
[200603]={
|
||||
["desc"]="Each attack of elements connected by the same link of Quick Regen restores <color=#3cff28>2%</color> HP"
|
||||
["desc"]="Each attack of elements connected by the same link of Quick Regen <color=#3cff28>restores HP</color>"
|
||||
},
|
||||
[200700]={
|
||||
["desc"]="Great Sword Combos: Increases the damage of each attack by <color=#3cff28>50%</color>"
|
||||
|
||||
@ -12,6 +12,7 @@ BattleConst.ELEMENT_WIGHT = 100
|
||||
BattleConst.MAX_ELEMENT_WIGHT = 500
|
||||
BattleConst.SIDE_ATK = 1
|
||||
BattleConst.SIDE_DEF = 2
|
||||
BattleConst.SIDE_ATK_ALL = 8
|
||||
BattleConst.SKILL_TYPE_ACTIVE = 1
|
||||
BattleConst.SKILL_TYPE_NORMAL = 2
|
||||
BattleConst.SKILL_TYPE_ASSISTING = 3
|
||||
|
||||
@ -199,6 +199,21 @@ local _addSkillEffect = function(skillInfo, battleData, battleController)
|
||||
local target = atkComp
|
||||
if skillInfo.obj == BattleConst.SIDE_DEF then
|
||||
target = defComp
|
||||
elseif skillInfo.obj == BattleConst.SIDE_ATK then
|
||||
target = atkComp
|
||||
elseif skillInfo.obj == BattleConst.SIDE_ATK_ALL then
|
||||
for matchtype, comp in pairs(battleController.atkTeam:getUnitComp()) do
|
||||
local buffEntity = BattleBuffEntity:create()
|
||||
buffEntity:init(effect, comp.unitEntity)
|
||||
buffEntity:setTargetSide(skillInfo.obj)
|
||||
comp:takeEffect(buffEntity, comp)
|
||||
end
|
||||
return
|
||||
else
|
||||
local matchType = BattleConst.SIDE_OBJ_TO_MATCH_TYPE[effect:getTartgetSide()]
|
||||
if matchType then
|
||||
target = battleController.atkTeam:getUnitComp()[matchType]
|
||||
end
|
||||
end
|
||||
local buffEntity = BattleBuffEntity:create()
|
||||
buffEntity:init(effect, atkComp.unitEntity)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user