mirror of
https://github.com/open-goal/jak-project
synced 2026-07-09 14:55:51 -04:00
[jak2] Fix bug where spinning into grind doesnt break clasps in dig1 (#3740)
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:
@@ -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)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user