fix(hero): 修正英雄与怪物技能消耗和状态判断逻辑
- 修改Hero和Monster类中技能对象,新增cost属性用于技能消耗 - 修复HeroViewComp中isStun和isFrost方法,确保返回布尔值 - SkillConComp日志输出技能列表和消耗信息,增强调试能力 - 更新英雄配置中的map属性值由0改为100,统一角色数据映射
This commit is contained in:
@@ -474,10 +474,10 @@ export class HeroViewComp extends CCComp {
|
||||
}
|
||||
|
||||
public isStun() {
|
||||
this.DBUFFS_V[DBuff.STUN] !== undefined
|
||||
return this.DBUFFS_V[DBuff.STUN] !== undefined?true:false
|
||||
}
|
||||
public isFrost() {
|
||||
this.DBUFFS_V[DBuff.FROST] !== undefined
|
||||
return this.DBUFFS_V[DBuff.FROST] !== undefined?true:false
|
||||
}
|
||||
|
||||
update(dt: number){
|
||||
|
||||
Reference in New Issue
Block a user