Issue information

Issue ID
#4189
Status
Invalid
Severity
None
Started
Hercules Elf Bot
Apr 16, 2010 23:58
Last Post
Hercules Elf Bot
Mar 19, 2012 19:25
Confirmation
N/A

Hercules Elf Bot - Apr 16, 2010 23:58

Originally posted by [b]Ivion[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=4189

Agressive monsters won't attack summoned monsters.

How did I tested this bug:
- @hide
- @summon poring
- @monster 1777
The ice titan won't attack your poring.

How to fix this bug:

mob.c
CODE
    if ((!tbl && mode&MD_AGGRESSIVE) || md->state.skillstate == MSS_FOLLOW)
-    {
-        map_foreachinrange (mob_ai_sub_hard_activesearch, &md->bl, view_range, DEFAULT_ENEMY_TYPE(md), md, &tbl, mode);
-    }
+        map_foreachinrange(mob_ai_sub_hard_activesearch, &md->bl, view_range, BL_CHAR, md, &tbl, mode);
    else
    if (mode&MD_CHANGECHASE && (md->state.skillstate == MSS_RUSH || md->state.skillstate == MSS_FOLLOW))
    {
        search_size = view_range<md->status.rhw.range ? view_range:md->status.rhw.range;
-        map_foreachinrange (mob_ai_sub_hard_changechase, &md->bl, search_size, DEFAULT_ENEMY_TYPE(md), md, &tbl);
+        map_foreachinrange (mob_ai_sub_hard_changechase, &md->bl, search_size, BL_CHAR, md, &tbl);
    }


This post has been edited by Ivion: Apr 16 2010, 05:03 PM

Hercules Elf Bot - Dec 8, 2011 17:01

Originally posted by [b]Ind[/b]
They don't attack back because of 'battle_config.retaliate_to_master', just change it if you want it to happen.