diff options
author | Dastgir Pojee <dastgirp@gmail.com> | 2016-10-02 21:21:37 +0530 |
---|---|---|
committer | hemagx <ibrahem.h.basyone@gmail.com> | 2016-10-22 02:21:56 +0200 |
commit | 408878cc59bf0ad0154f7b9c7f5367ea530a9362 (patch) | |
tree | f1eb265bbdf9d7ce38d8c7c57bfadac3ddc7c79f /src/map/pc.c | |
parent | af8ecd8af6a33b598844decff9b021bd07c931ce (diff) | |
download | hercules-408878cc59bf0ad0154f7b9c7f5367ea530a9362.tar.gz hercules-408878cc59bf0ad0154f7b9c7f5367ea530a9362.tar.bz2 hercules-408878cc59bf0ad0154f7b9c7f5367ea530a9362.tar.xz hercules-408878cc59bf0ad0154f7b9c7f5367ea530a9362.zip |
Implemented SU_SPRITEMABLE Skill.
MaxHP + 1000, MaxSP + 100.
Show's Spirit of Sea, Land and Life around the sprite when skill is
learned.
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 09f805d82..8f6d3bcb0 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -7405,6 +7405,9 @@ int pc_resetskill(struct map_session_data* sd, int flag) if( homun_alive(sd->hd) && pc->checkskill(sd, AM_CALLHOMUN) ) homun->vaporize(sd, HOM_ST_REST); + + if ((sd->sc.data[SC_SPRITEMABLE] && pc->checkskill(sd, SU_SPRITEMABLE))) + status_change_end(&sd->bl, SC_SPRITEMABLE, INVALID_TIMER); } for( i = 1; i < MAX_SKILL; i++ ) { @@ -8627,6 +8630,9 @@ int pc_jobchange(struct map_session_data *sd,int job, int upper) if(homun_alive(sd->hd) && !pc->checkskill(sd, AM_CALLHOMUN)) homun->vaporize(sd, HOM_ST_REST); + if ((sd->sc.data[SC_SPRITEMABLE] && pc->checkskill(sd, SU_SPRITEMABLE))) + status_change_end(&sd->bl, SC_SPRITEMABLE, INVALID_TIMER); + if(sd->status.manner < 0) clif->changestatus(sd,SP_MANNER,sd->status.manner); |