//
// PlayLayer::toggleIgnoreDamage from 0x30f484 to 0x30f4a6 (34 bytes)
//
// 3 xrefs:
// > PlayLayer::init @ 0x31cda4
// > PlayLayer::resetLevel @ 0x31f74e
// > GameOptionsLayer::didToggle @ 0x4a9152
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void PlayLayer::toggleIgnoreDamage(PlayLayer *a1, bool a2)
{
a1->m_ignoreDamage = a2;
if ( a2 )
a1->m_isIgnoreDamageEnabled = 1;
a1->m_player1->m_maybeCanRunIntoBlocks = a2;
a1->m_player2->m_maybeCanRunIntoBlocks = a2;
PlayLayer::updateTestModeLabel(a1);
}