summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-09 20:11:47 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-09 20:11:47 +0000
commit03e3c726518b8b3d6d28280210510ad37ee896bf (patch)
tree2866f5437beeb89c527d3e7460ee80c017522650 /src/map/mob.c
parentb08adba0cd415b21cf6bff88181d77bdfeda1f96 (diff)
downloadhercules-03e3c726518b8b3d6d28280210510ad37ee896bf.tar.gz
hercules-03e3c726518b8b3d6d28280210510ad37ee896bf.tar.bz2
hercules-03e3c726518b8b3d6d28280210510ad37ee896bf.tar.xz
hercules-03e3c726518b8b3d6d28280210510ad37ee896bf.zip
- Fixed Fog of Wall's symmetry in respect to Misc attacks, they no longer get reduced by 50% regardless of who is standing on the fog.
- monster_ai&2 will now trigger the rude-attacked skill when the mob can't move and the attacker is out of it's attack range. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6536 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index bae209fc1..d5c9da304 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1069,7 +1069,6 @@ static int mob_ai_sub_hard(struct block_list *bl,va_list ap)
mode = status_get_mode(&md->bl);
can_move = (mode&MD_CANMOVE)&&unit_can_move(&md->bl);
- //Since can_move is false when you are casting or the damage-delay kicks in, some special considerations
if (md->target_id)
{ //Check validity of current target. [Skotlex]
@@ -1093,13 +1092,12 @@ static int mob_ai_sub_hard(struct block_list *bl,va_list ap)
{
if (md->attacked_id == md->target_id)
{
- /* Currently being unable to move shouldn't trigger rude-attacked conditions.
- if (!can_move && !battle_check_range (&md->bl, tbl, md->db->range))
+ if (!can_move && (battle_config.mob_ai&2) &&
+ !battle_check_range(&md->bl, tbl, md->db->range))
{ //Rude-attacked.
if (md->attacked_count++ > 3)
mobskill_use(md, tick, MSC_RUDEATTACKED);
}
- */
} else
if ((abl= map_id2bl(md->attacked_id)) && (!tbl || mob_can_changetarget(md, abl, mode))) {
if (md->bl.m != abl->m || abl->prev == NULL ||