diff --git a/goal_src/levels/finalboss/robotboss.gc b/goal_src/levels/finalboss/robotboss.gc index 0cf1dc34c5..a9b74eb269 100644 --- a/goal_src/levels/finalboss/robotboss.gc +++ b/goal_src/levels/finalboss/robotboss.gc @@ -244,7 +244,17 @@ (send-event (handle->process (-> self shot-attractor)) 'draw #f) ) + (defbehavior robotboss-yellow-eco-off robotboss () +;; These logclears are not present in the orignal game, this is to patch the one frame of ghost yellow eco bug that can +;; occcur under certain conditions when robot-boss-yellow-eco-off is called. + (#when PC_PORT + (logclear! (-> self alts 7 extra perm status) (entity-perm-status bit-3)) + (logclear! (-> self alts 8 extra perm status) (entity-perm-status bit-3)) + (logclear! (-> self alts 9 extra perm status) (entity-perm-status bit-3)) + (logclear! (-> self alts 10 extra perm status) (entity-perm-status bit-3)) + ) + (logior! (-> self alts 7 extra perm status) (entity-perm-status bit-9)) (logior! (-> self alts 8 extra perm status) (entity-perm-status bit-9)) (logior! (-> self alts 9 extra perm status) (entity-perm-status bit-9))