Heya, i've been playing around with the attack function and i've found 2 problems, the first one and most important is that it doesn't matter what skill i pass to the function it always use the basic attack, the other one is that if i pass the skill to the ebx register it cast a basic skill but if i move the character and try to attack again it doesn't work.
Here is my attack function:
Code:
void Attack(SkillInfo* skill, MapMonsterObj* mob, PlayerObjManager* player)
{
printf("Skill name: %s\n", skill->name);
_asm
{
// mov ebx, skill
mov esi, skill
mov edx, mob
mov eax, player
call attackFunction;
}
}
Removing the "mov ebx, skill" allows me to cast the basic skill after moving but i can only use the basic skill D: anyone experienced on reversing can help me?