summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-06-08 13:47:32 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-06-08 13:47:32 +0000
commitad0b14806dca1c54c55d0f237dc465c27dc6351f (patch)
tree09e5ea9149c7a1ed910fd56beb5a1b00037b93d7 /src/map/mob.c
parent14590eeea5c5cab258bc06b0e49ee9b78dc2b48c (diff)
downloadhercules-ad0b14806dca1c54c55d0f237dc465c27dc6351f.tar.gz
hercules-ad0b14806dca1c54c55d0f237dc465c27dc6351f.tar.bz2
hercules-ad0b14806dca1c54c55d0f237dc465c27dc6351f.tar.xz
hercules-ad0b14806dca1c54c55d0f237dc465c27dc6351f.zip
Fixed bHPGainValue and bSPGainValue worked on all types of attacks and was only activated on mob's death.(bugreport:3193) [Inkfish]
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13863 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 531939885..369f503f9 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1976,13 +1976,6 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
if( sd )
{
- int sp = 0, hp = 0;
- sp += sd->sp_gain_value;
- sp += sd->sp_gain_race[status->race];
- sp += sd->sp_gain_race[status->mode&MD_BOSS?RC_BOSS:RC_NONBOSS];
- hp += sd->hp_gain_value;
- if( hp || sp )
- status_heal(src, hp, sp, battle_config.show_hp_sp_gain?2:0);
if( sd->mission_mobid == md->class_)
{ //TK_MISSION [Skotlex]
if( ++sd->mission_count >= 100 && (temp = mob_get_random_id(0, 0xE, sd->status.base_level)) )