Resistance effect now blocks some damage sensors during invincibility frames
Partner Rank:
2
Partner Team Reporting:
Everbloom Games
Verification builds:
1.19.60.24_rc0
Summary:
The resistance effect now prevents non-damaging damage sensors from firing events during the entity's invincibility frames
Impact:
We rely on this setup heavily in several upcoming maps, particularly in licensed IP content:
- Entity has many damage sensors that:
* have deals_damage: false and call events
* are expected to fire several times per second - Occasionally they receive damage that bypasses all the damage sensors to stop projectiles, among other reasons.
- The entities are given resistance.
This bug prevents these entities from firing their damage sensors during their half second of invincibility frames, which negatively affects gameplay and breaks some advertised mechanics.
Repro Steps:
- Open the provided world
- Punch the target block entity. It should react by saying "ran" in chat and playing totem particles.
- Verify the lever labeled "Resistance" is ON.
- Press the button labeled "Trigger damage" and observe the target entity. This deals 1 falling_block damage to trigger invincibility frames, followed by 2 entity_attack damage 2 ticks later to act as if you punched it during invincibility.
Observed Results:
The target entity simply simply shows the hurt animation with no chat message or particle effect, due to the damage sensor failing to fire during invincibility frames. It works as expected if the "Resistance" lever is OFF.
Expected Results:
The target entity says "ran" in chat and plays totem particles when you press the button, regardless of whether the resistance lever is ON or OFF.
Regression Build:
Latest working version tested was 1.19.51.01_rc0
Earliest broken version tested was 1.19.60.24_rc0
Screenshots / Videos Attached:
No