Align player hit FX test with safe reaction

This commit is contained in:
Admin 2026-09-18 06:43:25 +00:00
parent cc06e73e59
commit f39b13dcac

View File

@ -100,7 +100,7 @@ test('player hit FX runs after queued hit processing, outside the overlap callba
assert.match(source, /if \(appliedHits > 0\) \{[\s\S]*?for \(const impact of hits\) \{[\s\S]*?this\.spawnExplosion\(impact\.x, impact\.y, 0\.32\)/); assert.match(source, /if \(appliedHits > 0\) \{[\s\S]*?for \(const impact of hits\) \{[\s\S]*?this\.spawnExplosion\(impact\.x, impact\.y, 0\.32\)/);
assert.match(source, /this\.playPlayerHitReaction\(totalDamage\)/); assert.match(source, /this\.playPlayerHitReaction\(totalDamage\)/);
assert.match(source, /this\.cameras\.main\.shake\(120/); assert.match(source, /this\.cameras\.main\.shake\(120/);
assert.match(source, /this\.tweens\.add\(\{/); assert.doesNotMatch(source, /targets: this\.player/);
assert.match(source, /combat:player-hit-fx-error/); assert.match(source, /combat:player-hit-fx-error/);
}); });