What was the game that inspired this?
Believe it or not, Warframe! There's a famously bugged boss fight, Mutualist Alad V. My favourite glitch was one where I somehow became immune to dying, that plus the more common "can't hurt the boss" glitch inspired this.