diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-29 22:00:51 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-29 22:00:51 +0000 |
commit | 8a9600ded15d1846c9e38de0b660a0f6a72e20a9 (patch) | |
tree | 2f580058851d7028bef31d2c570aa62c1f955141 /src/map/pc.c | |
parent | 9d6ca2f45f252753ae27650565dd3728f14d3bf3 (diff) | |
download | hercules-8a9600ded15d1846c9e38de0b660a0f6a72e20a9.tar.gz hercules-8a9600ded15d1846c9e38de0b660a0f6a72e20a9.tar.bz2 hercules-8a9600ded15d1846c9e38de0b660a0f6a72e20a9.tar.xz hercules-8a9600ded15d1846c9e38de0b660a0f6a72e20a9.zip |
- Corrected the homunculus deletion functions so that the homunculus is deleted together with the character.
- Added npc_check_areanpc so that Wand of Hermod will correctly check for nearby warps.
- Emergency avoid now stacks with other speed boost statuses
- Item skills and skills that bring up a menu now are cleared on death.
- Minor cleanings
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9742 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index d52303204..5d97b4587 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -4874,9 +4874,15 @@ int pc_dead(struct map_session_data *sd,struct block_list *src) } pc_setdead(sd); + //Reset menu skills/item skills + if (sd->skillitem) + sd->skillitem = sd->skillitemlv = 0; + if (sd->menuskill_id) + sd->menuskill_id = sd->menuskill_lv = 0; //Reset ticks. sd->hp_loss_tick = sd->sp_loss_tick = 0; + pc_setglobalreg(sd,"PC_DIE_COUNTER",++sd->die_counter); if (sd->state.event_death){ |