diff --git a/mods/Mario-Run.lua b/mods/Mario-Run.lua index b9ea3bbef..185412a3f 100644 --- a/mods/Mario-Run.lua +++ b/mods/Mario-Run.lua @@ -1,5 +1,5 @@ -- name: Mario RUN! --- description: Mario Is contantly runing +-- description: Mario is constantly running. Threshold = 50 --set Threshold to 50 diff --git a/src/game/interaction.c b/src/game/interaction.c index 1912aa39a..5b46addee 100644 --- a/src/game/interaction.c +++ b/src/game/interaction.c @@ -1369,9 +1369,15 @@ u32 interact_player(struct MarioState* m, UNUSED u32 interactType, struct Object Vec3f velDiff; vec3f_dif(velDiff, m->vel, m2->vel); - if (vec3f_length(velDiff) < 40) { - // the difference vectors are not different enough, do not attack - return FALSE; + if (m->action == ACT_SLIDE_KICK_SLIDE || m->action == ACT_SLIDE_KICK) { + if (vec3f_length(m->vel) < 15) { + return FALSE; + } + } else { + if (vec3f_length(m->vel) < 40) { + // the difference vectors are not different enough, do not attack + return FALSE; + } } if (vec3f_length(m2->vel) > vec3f_length(m->vel)) { // the one being attacked is going faster, do not attack