diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-13 14:06:05 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-13 14:06:05 +0000 |
commit | 952043f3fc80c16ef45f68defb3a9f6a764ba0d7 (patch) | |
tree | f2919dfd29c372b7a24b9ae7074959a6f7694ad1 /src/map/status.c | |
parent | 74b5927330e0be611ff14cc7bcebff9f2c536f59 (diff) | |
download | hercules-952043f3fc80c16ef45f68defb3a9f6a764ba0d7.tar.gz hercules-952043f3fc80c16ef45f68defb3a9f6a764ba0d7.tar.bz2 hercules-952043f3fc80c16ef45f68defb3a9f6a764ba0d7.tar.xz hercules-952043f3fc80c16ef45f68defb3a9f6a764ba0d7.zip |
- Oppositions can't be made during WoE now.
- Fixed a few compiler warnings from VC
- Commented out the Homunculus Skills<->Status Change link which was causing some memory corruptions.
-
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7127 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/map/status.c b/src/map/status.c index 9dd77e727..bd58b91b0 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -354,10 +354,11 @@ void initChangeTables(void) { // set_sc(NJ_KAENSIN, SC_KAENSIN, SI_BLANK); set_sc(NJ_SUITON, SC_SUITON, SI_BLANK, SCB_AGI); set_sc(NJ_NEN, SC_NEN, SI_NEN, SCB_STR|SCB_INT); - set_sc(HLIF_AVOID, SC_AVOID, SI_BLANK, SCB_SPEED); - set_sc(HLIF_CHANGE, SC_CHANGE, SI_BLANK, SCB_INT); - set_sc(HAMI_BLOODLUST, SC_BLOODLUST, SI_BLANK, SCB_BATK|SCB_WATK); - set_sc(HFLI_FLEET, SC_FLEET, SI_BLANK, SCB_ASPD|SCB_BATK|SCB_WATK); +// FIXME: These skills have IDs of 8k and above, how do I fix these issues?? +// set_sc(HLIF_AVOID, SC_AVOID, SI_BLANK, SCB_SPEED); +// set_sc(HLIF_CHANGE, SC_CHANGE, SI_BLANK, SCB_INT); +// set_sc(HAMI_BLOODLUST, SC_BLOODLUST, SI_BLANK, SCB_BATK|SCB_WATK); +// set_sc(HFLI_FLEET, SC_FLEET, SI_BLANK, SCB_ASPD|SCB_BATK|SCB_WATK); // Storing the target job rather than simply SC_SPIRIT simplifies code later on. SkillStatusChangeTable[SL_ALCHEMIST] = MAPID_ALCHEMIST, @@ -1994,7 +1995,7 @@ int status_calc_pc(struct map_session_data* sd,int first) status->hp=status->max_hp>>1; else status->hp=status->max_hp * battle_config.restart_hp_rate/100; - if(status->hp < 0) + if(!status->hp) status->hp = 1; status->sp = status->max_sp * battle_config.restart_sp_rate /100; |