feat(英雄系统): 添加英雄复活机制并控制怪物行为

实现英雄复活功能,当英雄死亡且有复活次数时延迟复活
新增is_reviving状态标记复活中状态
英雄死亡或复活时通过stop_mon_action控制怪物停止刷新和移动
This commit is contained in:
walkpan
2026-01-03 11:17:04 +08:00
parent 56452795bb
commit 1cce4ce361
11 changed files with 88 additions and 11 deletions

View File

@@ -49,7 +49,7 @@ export class SACastSystem extends ecs.ComblockSystem implements ecs.ISystemUpdat
if (!heroAttrs || !heroView) return;
// 检查基本条件
if (heroAttrs.is_dead || heroAttrs.isStun() || heroAttrs.isFrost()) return;
if (heroAttrs.is_dead || heroAttrs.is_reviving || heroAttrs.isStun() || heroAttrs.isFrost()) return;
// 检查是否正在攻击(只有攻击时才释放技能)
if (!heroAttrs.is_atking) return;