summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-13 19:15:03 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-13 19:15:03 +0000
commite89f2a34a9dccf3146ecc22a3b570936fe4aab6a (patch)
treeb56b80e0b73a428f15bd2845e3d69f795382e570 /src/map/skill.c
parent18282ae649b0c2d54deaba32132171cbf56a1868 (diff)
downloadhercules-e89f2a34a9dccf3146ecc22a3b570936fe4aab6a.tar.gz
hercules-e89f2a34a9dccf3146ecc22a3b570936fe4aab6a.tar.bz2
hercules-e89f2a34a9dccf3146ecc22a3b570936fe4aab6a.tar.xz
hercules-e89f2a34a9dccf3146ecc22a3b570936fe4aab6a.zip
- HP Conversion will fail when used at max SP. It should not display any errors to the client.
- Modified yet again the login procedure. The initial status_calc_pc is invoked when the variable registries arrive, but the initial LoadEndAck will not be parsed until the registries have arrived. In the rare case this happens, pc_reg_received will take care of invoking the LoadEndAck function itself. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9208 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 98f11a2dd..65b47863b 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -8358,6 +8358,10 @@ int skill_check_condition (struct map_session_data *sd, int skill, int lv, int t
return 0;
}
break;
+ case PF_HPCONVERSION:
+ if (status->sp == status->max_sp)
+ return 0; //Unusable when at full SP.
+ break;
}
if(!(type&2)){