fix(地图任务卡): 移除重复的死亡模型检查逻辑
原逻辑中已存在 `isModelAlive()` 检查,`model?.is_dead` 是冗余条件。 移除重复检查以简化代码并保持逻辑一致性。
This commit is contained in:
@@ -854,11 +854,6 @@ export class MissionCardComp extends CCComp {
|
||||
removeKeys.push(eid);
|
||||
return;
|
||||
}
|
||||
if (item.model?.is_dead) {
|
||||
if (item.node.isValid) item.node.destroy();
|
||||
removeKeys.push(eid);
|
||||
return;
|
||||
}
|
||||
if (!item.comp.isModelAlive()) {
|
||||
if (item.node.isValid) item.node.destroy();
|
||||
removeKeys.push(eid);
|
||||
|
||||
Reference in New Issue
Block a user