//
// GJBaseGameLayer::activateResetTrigger from 0x1001fb4ec to 0x1001fb5d8 (236 bytes)
//
// 1 xrefs:
// > EffectGameObject::triggerObject @ 0x100385b8c
//
// 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 __fastcall GJBaseGameLayer::activateResetTrigger(GJBaseGameLayer *a1, EffectGameObject *a2)
{
cocos2d::CCArray *Group; // x0
cocos2d::CCArray *v4; // x20
cocos2d::ccArray *data; // x9
__int64 num; // x8
int **arr; // x21
unsigned __int64 v8; // x22
int *v9; // x20
GJEffectManager *m_effectManager; // x0
int v11; // w1
int m_uniqueID; // w2
Group = GJBaseGameLayer::getGroup(a1, a2->m_targetGroupID);
if ( Group )
{
v4 = Group;
if ( (unsigned int)sub_10024A36C(Group) )
{
data = v4->data;
num = data->num;
if ( (_DWORD)num )
{
arr = (int **)data->arr;
v8 = (unsigned __int64)&arr[num - 1];
do
{
v9 = *arr;
if ( !*arr )
return;
if ( v9[257] == 2063 )
{
GJEffectManager::removeTriggeredID(a1->m_effectManager, v9[229], a1->m_player1->m_uniqueID);
m_effectManager = a1->m_effectManager;
v11 = v9[229];
m_uniqueID = a1->m_player2->m_uniqueID;
}
else
{
if ( (*(unsigned int (__fastcall **)(int *))(*(_QWORD *)v9 + 1784LL))(*arr) != 30
&& (*(unsigned int (__fastcall **)(int *))(*(_QWORD *)v9 + 1784LL))(v9) != 21 )
{
goto LABEL_12;
}
m_effectManager = a1->m_effectManager;
v11 = v9[229];
m_uniqueID = 0;
}
GJEffectManager::removeTriggeredID(m_effectManager, v11, m_uniqueID);
(*(void (__fastcall **)(int *))(*(_QWORD *)v9 + 1496LL))(v9);
LABEL_12:
++arr;
}
while ( (unsigned __int64)arr <= v8 );
}
}
}
}