diff --git a/assets/script/game/map/CardComp.ts b/assets/script/game/map/CardComp.ts index f01bf0f9..c681aa0d 100644 --- a/assets/script/game/map/CardComp.ts +++ b/assets/script/game/map/CardComp.ts @@ -982,8 +982,10 @@ export class CardComp extends CCComp { mLogger.log(this.debugMode, "CardComp", `load hero animation failed ${uuid}`, err); return; } - // 竞态保护:若加载期间卡面已变更则丢弃 - if (token !== this.iconVisualToken || !this.cardData || this.card_type !== CardType.Hero || this.card_uuid !== uuid) { + // 竞态保护:仅靠 token 判断。 + // 升级卡的 card_uuid(7001) / card_type(SpecialUpgrade) 与实际渲染的 + // hero uuid / Hero 类型不一致,不能用这些字段做校验,token 已足够。 + if (token !== this.iconVisualToken) { return; } this.clearAnimationClips(anim);