fixed interaction flags when a mod doesn't specify an interaction type

This commit is contained in:
Isaac0-dev 2025-03-05 23:04:52 +10:00
parent 34e20e763d
commit c7df4eb071

View file

@ -166,8 +166,7 @@ u32 determine_interaction(struct MarioState *m, struct Object *o) {
if ((interaction == 0 || interaction & INT_LUA) && action & ACT_FLAG_ATTACKING) {
u32 flags = (MARIO_PUNCHING | MARIO_KICKING | MARIO_TRIPPING);
if ((action == ACT_PUNCHING || action == ACT_MOVE_PUNCHING || action == ACT_JUMP_KICK) ||
((m->flags & flags) && (interaction & INT_LUA))) {
if (m->flags & flags) {
s16 dYawToObject = mario_obj_angle_to_object(m, o) - m->faceAngle[1];
if (m->flags & MARIO_PUNCHING) {