summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-06 23:48:13 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-06 23:48:13 +0000
commit867734490acadfa45af27b3903a95f2bf15d3f3d (patch)
treef9eb463ba65838cb5e237d6add98ff216961d07f /src/map/mob.c
parent8f3f5c94a0111b37b374f7d861533f5f25a99af5 (diff)
downloadhercules-867734490acadfa45af27b3903a95f2bf15d3f3d.tar.gz
hercules-867734490acadfa45af27b3903a95f2bf15d3f3d.tar.bz2
hercules-867734490acadfa45af27b3903a95f2bf15d3f3d.tar.xz
hercules-867734490acadfa45af27b3903a95f2bf15d3f3d.zip
- Fixed Overthrust's timer not being able to be refreshed when recasting it (conflict on what val2 should mean)
- Changed the code in status_change_timer so that a null pointer no longer causes a crash but prints an error instead. - Corrected clones not copying over a player's skills properly. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12027 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index ff5fa49c7..d642a1e01 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2976,7 +2976,7 @@ int mob_clone_spawn(struct map_session_data *sd, int m, int x, int y, const char
ms = &db->skill[0];
//Go Backwards to give better priority to advanced skills.
for (i=0,j = MAX_SKILL_TREE-1;j>=0 && i< MAX_MOBSKILL ;j--) {
- skill_id = skill_tree[sd->status.class_][j].id;
+ skill_id = skill_tree[pc_class2idx(sd->status.class_)][j].id;
if (!skill_id || sd->status.skill[skill_id].lv < 1 ||
(skill_get_inf2(skill_id)&(INF2_WEDDING_SKILL|INF2_GUILD_SKILL)) ||
skill_get_nocast(skill_id)&16