Align player hit FX test with safe reaction
This commit is contained in:
parent
cc06e73e59
commit
f39b13dcac
@ -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/);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user