feat(英雄系统): 添加英雄复活机制并调整死亡处理逻辑
初始化英雄时添加复活次数属性 修改英雄死亡事件触发条件为复活次数耗尽 移除HeroViewComp中重复的死亡事件触发
This commit is contained in:
@@ -100,10 +100,10 @@ export class Hero extends ecs.Entity {
|
||||
model.Attrs[Attrs.AP] = model.base_ap;
|
||||
model.Attrs[Attrs.SPEED] = hero.speed;
|
||||
model.Attrs[Attrs.DIS] = hero.dis;
|
||||
|
||||
|
||||
// 初始化 buff/debuff 系统
|
||||
model.initAttrs();
|
||||
|
||||
model.Attrs[Attrs.REVIVE_COUNT]=1
|
||||
this.add(hv);
|
||||
oops.message.dispatchEvent(GameEvent.MasterCalled,{uuid:uuid})
|
||||
const move = this.get(HeroMoveComp);
|
||||
|
||||
Reference in New Issue
Block a user