去除buff 相关console
This commit is contained in:
@@ -68,15 +68,11 @@ export class CSkillComp extends CCComp {
|
||||
m_pos = v3(BoxSet.MONSTER_START,BoxSet.GAME_LINE)
|
||||
}
|
||||
t_pos = v3(m_pos.x-this.node.position.x,m_pos.y-this.node.position.y) // 目标增量
|
||||
// console.log("m_pos",m_pos);
|
||||
// console.log("pos",this.node.position);
|
||||
// console.log("t_pos",t_pos);
|
||||
let dx=m_pos.x-this.node.position.x
|
||||
let dy=m_pos.y-this.node.position.y
|
||||
let dir=v3(dx,dy,0)
|
||||
let randian=Math.atan2(dir.y,dir.x)
|
||||
angle = randian * (180 / Math.PI);
|
||||
// console.log("angle",angle);
|
||||
let scale = this.scale
|
||||
let dis = smc.skills[this.skill_uuid].dis+this.dis;
|
||||
let atk = smc.skills[this.skill_uuid].atk+this.atk;
|
||||
@@ -108,14 +104,11 @@ export class CSkillComp extends CCComp {
|
||||
if (heros.length > 0) {
|
||||
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].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.HeroView.hp < least_hp){
|
||||
least_hp = hero.HeroView.hp
|
||||
t_hero = hero
|
||||
@@ -144,10 +137,7 @@ export class CSkillComp extends CCComp {
|
||||
to_destroy() {
|
||||
this.is_destroy = true
|
||||
this.remove_buff()
|
||||
// console.log("CSkillComp toDestroy");
|
||||
if (this.node.isValid) {
|
||||
// console.log("CSkillComp.node.isValid");
|
||||
// console.log("CSkillComp.node.destroy",this);
|
||||
this.ent.destroy()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user