summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-10-10 10:06:05 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-10-10 10:06:05 +0000
commite551e39b0911880c0f89f1c37666792bde7c49b3 (patch)
treed5fb588d55bb72643c15357366b09f9e270fa65d /src/map/status.c
parentb17ad90eaf719b1165a681a5b4c4760b8d292f42 (diff)
downloadhercules-e551e39b0911880c0f89f1c37666792bde7c49b3.tar.gz
hercules-e551e39b0911880c0f89f1c37666792bde7c49b3.tar.bz2
hercules-e551e39b0911880c0f89f1c37666792bde7c49b3.tar.xz
hercules-e551e39b0911880c0f89f1c37666792bde7c49b3.zip
Slightly corrected the NPC_REBIRTH code from r13272.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13274 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 1134c83da..9cdd35ac7 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -793,12 +793,12 @@ int status_damage(struct block_list *src,struct block_list *target,int hp, int s
return hp+sp;
}
- if( !((TBL_MOB*)target)->state.rebirth && sc && sc->data[SC_REBIRTH] && target->type == BL_MOB )
- { // Ensure the monster has not already rebirthed before doing so.
- int time = skill_get_time2(NPC_REBIRTH,sc->data[SC_REBIRTH]->val1);
+ if( target->type == BL_MOB && sc && sc->data[SC_REBIRTH] && !((TBL_MOB*)target)->state.rebirth )
+ {// Ensure the monster has not already rebirthed before doing so.
status_revive(target, sc->data[SC_REBIRTH]->val2, 0);
status_change_clear(target,0);
((TBL_MOB*)target)->state.rebirth = 1;
+
return hp+sp;
}