法宝心愿修改

dev_fengTi_And
PC-202302260912\Administrator 2023-07-11 11:43:02 +08:00
parent de3f2d011a
commit e3f5c7de9d
1 changed files with 3 additions and 3 deletions

View File

@ -184,7 +184,7 @@ function this:ShowSingleHero(go,data,index)
self.maskList[self.curSelect][index]:SetActive(false)
Util.SetGray(self.itemList[self.curSelect][index],false)
local value = RecruitManager.CheckCurTalismanaState(data)
local value = RecruitManager.CheckCurTalismanaState(equipId)
if value == 0 then--上方存在相同阵营
Util.SetGray(self.itemList[self.curSelect][index],true)
Util.AddOnceClick(go,function ()
@ -198,7 +198,7 @@ function this:ShowSingleHero(go,data,index)
elseif value == 1 then--上方存在自己
self.maskList[self.curSelect][index]:SetActive(true)
Util.AddOnceClick(go,function ()
RecruitManager.ChangeEquip(2,data,function ()
RecruitManager.ChangeEquip(2,equipId,function ()
this:Refresh(false,false)
end)--英雄变更1增加、2卸下
end)
@ -209,7 +209,7 @@ function this:ShowSingleHero(go,data,index)
end)
elseif value == 3 then--可选
Util.AddOnceClick(go,function ()
RecruitManager.ChangeEquip(1,data,function ()
RecruitManager.ChangeEquip(1,equipId,function ()
this:Refresh(false,false)
end)--英雄变更1增加、2卸下
end)