选择神将修改
parent
38ca3ae439
commit
c3e2842f3a
|
|
@ -127,10 +127,11 @@ function FourTrailSingleHelpHero:SetIcon1(heroData,player)
|
|||
self.select:SetNativeSize()
|
||||
self.selectText.text = "选择神将"
|
||||
Util.AddOnceClick(self.btn, function()
|
||||
if tempData and tempData.player and tempData.player.state == 0 then
|
||||
local tempData1 = MonsterCampManager.GetFriendHelpHero(self.curType)
|
||||
if tempData1 and tempData1.player and tempData1.player.state == 0 then
|
||||
PopupTipPanel.ShowTip("已选择其他神将!")
|
||||
elseif tempData and tempData.player and tempData.player.state == 1 then
|
||||
LogGreen(tempData.player.state)
|
||||
elseif tempData1 and tempData1.player and tempData1.player.state == 1 then
|
||||
LogGreen(tempData1.player.state)
|
||||
PopupTipPanel.ShowTip("今日已无使用助战次数!")
|
||||
else
|
||||
NetManager.UseHelpHeroRequest(heroData.dynamicId,self.curType,1,function()
|
||||
|
|
@ -158,7 +159,8 @@ function FourTrailSingleHelpHero:SetIcon2(heroData)
|
|||
self.select:SetNativeSize()
|
||||
self.selectText.text = "选择神将"
|
||||
Util.AddOnceClick(self.btn, function()
|
||||
if tempData then
|
||||
local tempData1 = MonsterCampManager.GetMyHelpHero(self.curType)
|
||||
if tempData1 then
|
||||
PopupTipPanel.ShowTip("已选择支援神将!")
|
||||
else
|
||||
NetManager.SetHelpHeroRequest(heroData.dynamicId,function(msg)
|
||||
|
|
|
|||
Loading…
Reference in New Issue