The purpose of this change is to prepare for the implementation of the re-enabled opcodes in the Magnetic update. The IsOpcodeDisabled() function is altered to add a check for the SCRIPT_ENABLE_MAGNETIC_OPCODES flag and the opcodes that will probably be re-enabled.
This check is structured in such a way that future changes can implement the re-enabled opcodes individually and independently.
The change does not in itself result in any behavioural change. We have verified that the tests in script_tests.json cover these changes and since the tests have not been altered, their continued success verifies that the behaviour of the function has not changed.