diff --git a/assets/script/game/hero/Hero.ts b/assets/script/game/hero/Hero.ts index d1e98856..ccae4c84 100644 --- a/assets/script/game/hero/Hero.ts +++ b/assets/script/game/hero/Hero.ts @@ -143,18 +143,6 @@ export class Hero extends ecs.Entity { move.moving = false; hv.as.idle(); - // 触发 call 技能 - if (hero.call && hero.call.length > 0) { - hero.call.forEach(uuid => { - oops.message.dispatchEvent(GameEvent.TriggerSkill, { - s_uuid: uuid, - heroAttrs: model, - heroView: hv, - triggerType: 'call' - }); - }); - } - // 依据下落距离自适应入场时长,保证手感稳定 const dropDistance = Math.abs(pos.y - dropToY); const dropDuration = Math.max(0.18, Math.min(0.38, dropDistance / 1200)); @@ -175,6 +163,18 @@ export class Hero extends ecs.Entity { collider.group = BoxSet.HERO; collider.apply(); } + + // 落地后触发 call 技能 + if (hero.call && hero.call.length > 0) { + hero.call.forEach(uuid => { + oops.message.dispatchEvent(GameEvent.TriggerSkill, { + s_uuid: uuid, + heroAttrs: model, + heroView: hv, + triggerType: 'call' + }); + }); + } }) .start(); } diff --git a/assets/script/game/hero/Mon.ts b/assets/script/game/hero/Mon.ts index cfa5ec28..1280aefa 100644 --- a/assets/script/game/hero/Mon.ts +++ b/assets/script/game/hero/Mon.ts @@ -197,18 +197,6 @@ export class Monster extends ecs.Entity { move.baseY = dropToY; move.moving = false; - // 触发 call 技能 - if (hero.call && hero.call.length > 0) { - hero.call.forEach((uuid: number) => { - oops.message.dispatchEvent(GameEvent.TriggerSkill, { - s_uuid: uuid, - heroAttrs: model, - heroView: view, - triggerType: 'call' - }); - }); - } - // 依据下落距离自适应入场时长,确保观感一致 const dropDistance = Math.abs(pos.y - dropToY); const dropDuration = Math.max(0.18, Math.min(0.38, dropDistance / 1200)); @@ -229,6 +217,18 @@ export class Monster extends ecs.Entity { collider.group = BoxSet.MONSTER; collider.apply(); } + + // 落地后触发 call 技能 + if (hero.call && hero.call.length > 0) { + hero.call.forEach((uuid: number) => { + oops.message.dispatchEvent(GameEvent.TriggerSkill, { + s_uuid: uuid, + heroAttrs: model, + heroView: view, + triggerType: 'call' + }); + }); + } }) .start(); // 维护关卡内怪物数量统计