去掉原先的monster文件夹下面文件

This commit is contained in:
2024-09-11 10:41:49 +08:00
parent f5a8cb20de
commit b5406bd9af
38 changed files with 17 additions and 5200 deletions

View File

@@ -109,24 +109,24 @@ export class CSkillComp extends CCComp {
if(SkillSet[uuid].type==92){ //随机添加buff
let i = RandomManager.instance.getRandomInt(0,heros.length-1,3)
console.log("i %%length:",i,heros.length)
heros[i].MonsterBuff.add_buff(uuid,args);
heros[i].HeroBuff.add_buff(uuid,args);
}else{
for (let i = 0; i < heros.length; i++) {
let hero = heros[i];
// console.log(" CSkillComp hero",hero);
if(SkillSet[uuid].type==91){ //血量最少单体
console.log(" CSkillComp hero 91",hero,least_hp,t_hero);
if(hero.MonsterView.hp < least_hp){
least_hp = hero.MonsterView.hp
if(hero.HeroView.hp < least_hp){
least_hp = hero.HeroView.hp
t_hero = hero
}
}else{ //群体
hero.MonsterBuff.add_buff(uuid,args);
hero.HeroBuff.add_buff(uuid,args);
}
}
if(t_hero){ //血量最少单体
t_hero.MonsterBuff.add_buff(uuid,args);
t_hero.HeroBuff.add_buff(uuid,args);
}
}