diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-09-16 23:41:07 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-09-16 23:41:07 +0000 |
commit | 314c3a15af2ca26fc5b14dc969da93e6c896da18 (patch) | |
tree | 62b36dbd4d260499baa084f008cc5f5d82bfe17e /src/map/mob.c | |
parent | 4c3dba4156da77f7fb54def3d0d6a35528d4271f (diff) | |
download | hercules-314c3a15af2ca26fc5b14dc969da93e6c896da18.tar.gz hercules-314c3a15af2ca26fc5b14dc969da93e6c896da18.tar.bz2 hercules-314c3a15af2ca26fc5b14dc969da93e6c896da18.tar.xz hercules-314c3a15af2ca26fc5b14dc969da93e6c896da18.zip |
- Added monster_ai&256. When set, a monster will pick a random starting position to begin checking versus it's skills, otherwise, it will always begin checking from the beginning.
- Added NPC_CHANGEUNDEAD to the skill_cast_db, fixes it apparently doing "nothing".
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8778 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 930f01a9d..8ee1970b7 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2619,8 +2619,8 @@ int mobskill_use(struct mob_data *md, unsigned int tick, int event) if (event < 0 && DIFF_TICK(md->ud.canact_tick, tick) > 0) return 0; //Skill act delay only affects non-event skills. - //Pick a random starting position and loop from that. - i = rand()%md->db->maxskill; + //Pick a starting position and loop from that. + i = battle_config.mob_ai&256?rand()%md->db->maxskill:0; for (n = 0; n < md->db->maxskill; i++, n++) { int c2, flag = 0; |