当三个英雄后,不再出现其他英雄

This commit is contained in:
panw
2025-08-06 16:20:54 +08:00
parent af16f581dd
commit 3f2001e2d1
3 changed files with 25 additions and 4 deletions

View File

@@ -11,6 +11,7 @@ import { getSkills, Quality } from "../common/config/SkillSet";
import { getEnhancement } from "../common/config/LevelUp";
import { FightSet } from "../common/config/Mission";
import { oops } from "db://oops-framework/core/Oops";
import { getHeroListByCalled } from "../common/config/heroSet";
const { ccclass, property } = _decorator;
@@ -125,7 +126,8 @@ export class CardsCompComp extends CCComp {
this.card3c.enhancement_select(list[2])
}
hero_select(data:any){
let list=getRandomCardsByType(cardType.HERO,3,0)
let list=getHeroListByCalled(3,data.called)
console.log("[CardsComp]:英雄选择卡牌列表",list)
this.card1c.hero_select(list[0])
this.card2c.hero_select(list[1])