Jump to content
  • 0

Pets won't attack same mob


Question

Posted

Got a weird problem here, is there a code in the source that is not allowing pets to attack the mob?

Example: If I made doppelganger into a pet and it supports me and helps by attacking mobs, it will attack all other mobs EXCEPT another doppelganger.

So essentially, pet mobs won't attack other mobs that are the same mob id

4 answers to this question

Recommended Posts

Posted

pet.c

if(bl == NULL || bl->type != BL_MOB || bl->prev == NULL ||
pd->pet.intimate < battle_config.pet_support_min_friendly ||
pd->pet.hungry < 1 ||
pd->pet.class_ == status_get_class(bl))
return 0;

if you want, you can remove

||
pd->pet.class_ == status_get_class(bl)

result:

if(bl == NULL || bl->type != BL_MOB || bl->prev == NULL ||
pd->pet.intimate < battle_config.pet_support_min_friendly ||
pd->pet.hungry < 1)
return 0;

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...