summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authortoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-28 13:40:55 +0000
committertoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-28 13:40:55 +0000
commit998c5616368212ebfd9d46d548a29bab557d84ce (patch)
tree9ed569ab23c2ce1e48f0c1c776fd6b549b27f38f /src/map/pc.c
parent7bfc54bd1b4ea432ce7ba412e5280a990fde34fb (diff)
downloadhercules-998c5616368212ebfd9d46d548a29bab557d84ce.tar.gz
hercules-998c5616368212ebfd9d46d548a29bab557d84ce.tar.bz2
hercules-998c5616368212ebfd9d46d548a29bab557d84ce.tar.xz
hercules-998c5616368212ebfd9d46d548a29bab557d84ce.zip
Applied Mpeg's work on GS ( http://gpegon.free.fr/ea/gunslinger_08-28-06_mpeg.txt )
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8513 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index bde039c83..6883e7c4c 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4822,6 +4822,9 @@ int pc_dead(struct map_session_data *sd,struct block_list *src)
npc_script_event(sd,NPCE_DIE);
}
+ if ( sd && sd->spiritball && (sd->class_&MAPID_BASEMASK)==MAPID_GUNSLINGER ) // maybe also monks' spiritballs ?
+ pc_delspiritball(sd,sd->spiritball,0);
+
if (src)
switch (src->type) {
case BL_MOB: