summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-06 21:11:12 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-06 21:11:12 +0000
commit492c1822dc5c36972ed21873af9b353ec1864b20 (patch)
tree729e8d7f8c4f8270c6727f77c7f437497ef64984 /src/map/unit.c
parent89a228e0aa57b695a7f990ee6777f38cbdd2460c (diff)
downloadhercules-492c1822dc5c36972ed21873af9b353ec1864b20.tar.gz
hercules-492c1822dc5c36972ed21873af9b353ec1864b20.tar.bz2
hercules-492c1822dc5c36972ed21873af9b353ec1864b20.tar.xz
hercules-492c1822dc5c36972ed21873af9b353ec1864b20.zip
- Renamed the mob mode Cast-Sensor Melee to Cast-Sensor idle since these mobs really should only be cast-sensing when they are not after another target.
- Added a Aegis Mob Type -> eA Mode table conversion to the mob modes doc. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9426 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index ef60579b6..f48f4a951 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -951,7 +951,7 @@ int unit_skilluse_id2(struct block_list *src, int target_id, int skill_num, int
TBL_MOB *md = (TBL_MOB*)target;
mobskill_event(md, src, tick, -1); //Cast targetted skill event.
//temp: used to store mob's mode now.
- if (tstatus->mode&(MD_CASTSENSOR_MELEE|MD_CASTSENSOR_CHASE) &&
+ if (tstatus->mode&(MD_CASTSENSOR_IDLE|MD_CASTSENSOR_CHASE) &&
battle_check_target(target, src, BCT_ENEMY) > 0)
{
switch (md->state.skillstate) {
@@ -963,15 +963,14 @@ int unit_skilluse_id2(struct block_list *src, int target_id, int skill_num, int
md->state.aggressive = (temp&MD_ANGRY)?1:0;
md->min_chase = md->db->range3;
break;
- case MSS_ANGRY:
- case MSS_BERSERK:
- if (!(tstatus->mode&MD_CASTSENSOR_MELEE))
- break;
case MSS_IDLE:
case MSS_WALK:
+ if (!(tstatus->mode&MD_CASTSENSOR_IDLE))
+ break;
md->target_id = src->id;
md->state.aggressive = (temp&MD_ANGRY)?1:0;
md->min_chase = md->db->range3;
+ break;
}
}
}