diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-16 02:17:48 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-16 02:17:48 +0000 |
commit | 81289b916f65036bcab0c292d433ee2a2e9aa8c6 (patch) | |
tree | 265861cf3f9a819fb2c635a6bc4d9feb24116aff /src/map/skill.c | |
parent | bde640d49c4a26203d76ea5884c1264b3f7828e2 (diff) | |
download | hercules-81289b916f65036bcab0c292d433ee2a2e9aa8c6.tar.gz hercules-81289b916f65036bcab0c292d433ee2a2e9aa8c6.tar.bz2 hercules-81289b916f65036bcab0c292d433ee2a2e9aa8c6.tar.xz hercules-81289b916f65036bcab0c292d433ee2a2e9aa8c6.zip |
- Fixed mob random walk interval being set to up to 6K seconds in some instances.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5621 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 137c812e9..33bd65255 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -779,10 +779,10 @@ int skillnotok(int skillid, struct map_session_data *sd) if (i >= GD_SKILLBASE)
i = GD_SKILLRANGEMIN + i - GD_SKILLBASE;
- if (sd->blockskill[i] > 0)
+ if (i > MAX_SKILL || i < 0)
return 1;
- if (i > MAX_SKILL || i < 0)
+ if (sd->blockskill[i] > 0)
return 1;
if (battle_config.gm_skilluncond && pc_isGM(sd) >= battle_config.gm_skilluncond)
|