summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-15 17:10:41 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-15 17:10:41 +0000
commit9897fd34e26b4276bb87962e354346264068fda2 (patch)
tree67a77ce91404ced7d1854947867992c5d3c5c7f2
parentee74f4207e43451f6857b327f52f206faca53d0a (diff)
downloadhercules-9897fd34e26b4276bb87962e354346264068fda2.tar.gz
hercules-9897fd34e26b4276bb87962e354346264068fda2.tar.bz2
hercules-9897fd34e26b4276bb87962e354346264068fda2.tar.xz
hercules-9897fd34e26b4276bb87962e354346264068fda2.zip
- Changed the behaviour of immobile mobs when they can't chase their target. Rather than using a longrange skill and then unlocking, they will use an attack/angry state skill and then unlock.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6599 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt3
-rw-r--r--src/map/mob.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 3bcd85ff0..f14b92177 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -4,6 +4,9 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/05/15
+ * Changed the behaviour of immobile mobs when they can't chase their
+ target. Rather than using a longrange skill and then unlocking, they will
+ use an attack/angry state skill and then unlock. [Skotlex]
* Some adjustments of how disguising + gm-hiding work together. [Skotlex]
* Fixed clif_GlobalMessage being the exact same function as clif_message
(the first should send to ALL_CLIENT and the later should send to
diff --git a/src/map/mob.c b/src/map/mob.c
index 4069a9733..3cfe3b997 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1187,7 +1187,8 @@ static int mob_ai_sub_hard(struct block_list *bl,va_list ap)
{ //Out of range...
if (!(mode&MD_CANMOVE))
{ //Can't chase. Attempt to use a ranged skill at least?
- mobskill_use(md, tick, MSC_LONGRANGEATTACKED);
+ md->state.skillstate = md->state.aggressive?MSS_ANGRY:MSS_BERSERK;
+ mobskill_use(md, tick, -1);
mob_unlocktarget(md,tick);
return 0;
}