diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-24 20:59:07 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-24 20:59:07 +0000 |
commit | 1da02be93e1014763424c9174e1b3b52baf10439 (patch) | |
tree | fbbcc7342a65f4ecef6d763b5cc0eac2fa4b7adf /src/map/skill.c | |
parent | cce28be793ac48e1fcac04ee9bbf565ae5cc3f1f (diff) | |
download | hercules-1da02be93e1014763424c9174e1b3b52baf10439.tar.gz hercules-1da02be93e1014763424c9174e1b3b52baf10439.tar.bz2 hercules-1da02be93e1014763424c9174e1b3b52baf10439.tar.xz hercules-1da02be93e1014763424c9174e1b3b52baf10439.zip |
- Modified the mob ai think time update after using skills from adelay/amotion to 100ms since the previous method adds a large delay before the AI activates again (which screws up with the timing of idle/walk skills)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10348 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index bb895c68d..b3a5d432b 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -5739,10 +5739,7 @@ int skill_castend_id (int tid, unsigned int tick, int id, int data) break; if(md) { - if(tid != -1) //Set afterskill delay. - md->last_thinktime=tick +md->status.amotion; - else - md->last_thinktime=tick +md->status.adelay; + md->last_thinktime=tick +MIN_MOBTHINKTIME; if(md->skillidx >= 0 && md->db->skill[md->skillidx].emotion >= 0) clif_emotion(src, md->db->skill[md->skillidx].emotion); } @@ -5927,10 +5924,7 @@ int skill_castend_pos (int tid, unsigned int tick, int id, int data) break; if(md) { - if (tid != -1) - md->last_thinktime=tick +md->status.amotion; - else - md->last_thinktime=tick +md->status.adelay; + md->last_thinktime=tick +MIN_MOBTHINKTIME; if(md->skillidx >= 0 && md->db->skill[md->skillidx].emotion >= 0) clif_emotion(src, md->db->skill[md->skillidx].emotion); } |