//
// PlayLayer::toggleIgnoreDamage from 0x5c9f98 to 0x5c9fcc (52 bytes)
//
// 4 xrefs:
// > PlayLayer::resetLevel @ 0x5e51cc
// > PlayLayer::init @ 0x5e66f0
// > GameOptionsLayer::didToggle @ 0x8c33bc
// > ??> @ 0x80328
//
// 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)
{
PlayerObject *m_player2; // x2
a1->m_ignoreDamage = a2;
if ( a2 )
a1->m_isIgnoreDamageEnabled = 1;
m_player2 = a1->m_player2;
a1->m_player1->m_maybeCanRunIntoBlocks = a2;
m_player2->m_maybeCanRunIntoBlocks = a2;
PlayLayer::updateTestModeLabel(a1);
}