基础技能完善

This commit is contained in:
walkpan
2024-08-22 09:04:26 +08:00
parent ee7f1c322b
commit ceee58079d
39 changed files with 1999 additions and 63 deletions

View File

@@ -4,7 +4,7 @@ import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/modu
import { data } from "../data/data";
import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops";
import { smc } from "../common/SingletonModuleComp";
import { CardSet } from "../common/config/CardSet";
import { CardSet, SkillSet } from "../common/config/CardSet";
import { HeroCard } from "./HeroCard";
import { HeroModelComp } from "./HeroModelComp";
import { Hero } from "./Hero";
@@ -105,7 +105,7 @@ export class HeroCardViewComp extends CCComp {
let heros = ecs.query(ecs.allOf(HeroModelComp))
// let heross= ecs.query(ecs.allOf(MonsterViewComp))
// console.log("heross",heross)
if(heros.length >= 4){
if(heros.length >= 4&&this.card_type == 1){
oops.gui.toast("英雄数量达到上限");
this.node.setPosition(this.pos_x,this.pos_y);
return;