Scripts/Ruby Sanctum: (Possibly) fixed Twilight Mending.

I don't have the computer to even compile a core, please report back. My logics shouldn't be wrong here from what I can read on the wiki.

Ref #10016.