summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-04 13:34:31 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-04 13:34:31 +0000
commit13371ff777f3509d8e5e02f2080f4692abacd57e (patch)
tree6be2277762d2d0728ee47bffa58e18d103a30562 /src/map/pc.c
parent37c603ec06e864e0daff41ac5fe67fc005561d70 (diff)
downloadhercules-13371ff777f3509d8e5e02f2080f4692abacd57e.tar.gz
hercules-13371ff777f3509d8e5e02f2080f4692abacd57e.tar.bz2
hercules-13371ff777f3509d8e5e02f2080f4692abacd57e.tar.xz
hercules-13371ff777f3509d8e5e02f2080f4692abacd57e.zip
* Players now are allowed to copy the skills the level which is beyond the skill_db max. [Inkfish]
* Fixed some behaviors for Waterball (bugreport:3024) [Inkfish] - High level Waterball used by players doesn't increase the number of balls. - Monsters can't pull water from cells with Magnetic Earth. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13730 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 22d2ace6d..abb322af6 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -3805,6 +3805,12 @@ int pc_setpos(struct map_session_data* sd, unsigned short mapindex, int x, int y
return 1;
}
+ if( pc_isdead(sd) )
+ { //Revive dead people before warping them
+ pc_setstand(sd);
+ pc_setrestartvalue(sd,1);
+ }
+
sd->state.changemap = (sd->mapindex != mapindex);
if( sd->state.changemap )
{ //Misc map-changing settings