mirror of
https://github.com/open-goal/jak-project.git
synced 2024-11-23 06:09:57 +00:00
[jak2] Fix bug where spinning into grind doesnt break clasps in dig1 (#3740)
Some checks failed
Build / 🖥️ Windows (push) Waiting to run
Build / 🐧 Linux (push) Waiting to run
Build / 🍎 MacOS (push) Waiting to run
Lint / 📝 Formatting (push) Waiting to run
Lint / 📝 Required Checks (push) Waiting to run
Lint / 📝 Optional Checks (push) Waiting to run
Inform Pages Repo / Generate Documentation (push) Has been cancelled
Some checks failed
Build / 🖥️ Windows (push) Waiting to run
Build / 🐧 Linux (push) Waiting to run
Build / 🍎 MacOS (push) Waiting to run
Lint / 📝 Formatting (push) Waiting to run
Lint / 📝 Required Checks (push) Waiting to run
Lint / 📝 Optional Checks (push) Waiting to run
Inform Pages Repo / Generate Documentation (push) Has been cancelled
if you sideflip into grind in the digsite mission, the clasps wont break because it is considered a `board-spin` attack instead of `board`. This extends the condition to allow for `board-spin` as well. ~~Should I wrap this in an `#if PC_PORT`?~~ done
This commit is contained in:
parent
7553877e57
commit
2a41bc615e
@ -656,7 +656,12 @@
|
||||
)
|
||||
(('attack)
|
||||
(let ((v1-2 (the-as attack-info (-> block param 1))))
|
||||
(when (and (logtest? (-> v1-2 mask) (attack-mask mode)) (= (-> v1-2 mode) 'board))
|
||||
(when (and (logtest? (-> v1-2 mask) (attack-mask mode))
|
||||
;; og:preserve-this fix bug where spinning into grind doesnt break
|
||||
(#if PC_PORT
|
||||
(or (= (-> v1-2 mode) 'board)
|
||||
(and (= (-> v1-2 mode) 'board-spin) (focus-test? *target* rail)))
|
||||
(= (-> v1-2 mode) 'board)))
|
||||
(cpad-set-buzz! (-> *cpad-list* cpads 0) 0 85 (seconds 0.1))
|
||||
(go-virtual break-it)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user