Skip to content

Commit e4e738a

Browse files
authored
make custom attacking actions able to break custom windows
This change allows custom attacking actions to be able to break star road's breakable windows Before this commit custom characters like the sonic in this pull request coop-deluxe/sm64coopdx#1081 can't break some star road windows due to giving up vanilla actions. This pull request remedies that by allowing any custom attacking action to be used in place of vanilla actions for breaking said windows.
1 parent 2e79429 commit e4e738a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

helpers.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ function check_mario_attacking(obj, mario)
5454
if mario.action == ACT_WALL_KICK_AIR then
5555
return 2
5656
end
57+
if (mario.action & ACT_FLAG_CUSTOM_ACTION ~= 0) and (mario.action & ACT_FLAG_ATTACKING ~= 0) then
58+
return 2
59+
end
5760
end
5861
end
5962

0 commit comments

Comments
 (0)