Update ChooseHeroUpQuality.ts
This commit is contained in:
parent
8c5274d7ee
commit
182d1a2d17
@ -78,6 +78,10 @@ export class ChooseHeroUpQuality extends UIBase {
|
||||
}
|
||||
|
||||
if (this.mainHeroData && this.secHeroData) {
|
||||
if (this.mainHeroData == this.secHeroData) {
|
||||
cc.uiHelper.showTips('Must Choose two different hero');
|
||||
return;
|
||||
}
|
||||
NetManage.upgradeQualityPreview(
|
||||
this.mainHeroData,
|
||||
this.secHeroData,
|
||||
@ -114,6 +118,11 @@ export class ChooseHeroUpQuality extends UIBase {
|
||||
|
||||
onOk() {
|
||||
if (this.mainHeroData && this.secHeroData) {
|
||||
if (this.mainHeroData == this.secHeroData) {
|
||||
cc.uiHelper.showTips('Must Choose two different hero');
|
||||
return;
|
||||
}
|
||||
|
||||
NetManage.heroUpgradeQuality(
|
||||
this.mainHeroData,
|
||||
this.secHeroData,
|
||||
|
Loading…
x
Reference in New Issue
Block a user