This is how I write it now
auto bsvtd = LoadClass("", "BattlePerformanceCommandCard:BaseMonoBehaviour");
HOOK(bsvtd.GetMethodOffsetByName("updateCardMag", 0), fp, &old_fp);
HOOK(bsvtd.GetMethodOffsetByName("GetBaseCommandCard", 0), up, &old_up);
But it will cause the game to jam
Please help me