Hello, I have a problem with modding my hook in lgl mod menu.
this my code, but it doesn't work still gives enemy damage too
C++:
void (*init)(void *instance, bool _isPlayer);
float (*old_getAtk)(void *instance);
float getAttk(void *instance) {
if(instance != NULL && getDmg > 1) {
void *get_init = init(instance, true);
if(get_init) {
return (float) getDmg;
}
}
}
this my code, but it doesn't work still gives enemy damage too