diff options
author | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-11-04 10:08:15 +0000 |
---|---|---|
committer | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-11-04 10:08:15 +0000 |
commit | 5ced9134785c9c5c540eb484c893fe17a4a5bf3f (patch) | |
tree | f4b07bd8da948ca1324e0eab3fac60b22680367f /src/map/skill.c | |
parent | 3db009b91f169a00a9c87458b0d885dcf162bf42 (diff) | |
download | hercules-5ced9134785c9c5c540eb484c893fe17a4a5bf3f.tar.gz hercules-5ced9134785c9c5c540eb484c893fe17a4a5bf3f.tar.bz2 hercules-5ced9134785c9c5c540eb484c893fe17a4a5bf3f.tar.xz hercules-5ced9134785c9c5c540eb484c893fe17a4a5bf3f.zip |
* All Songs/Dances now create a 3 second delay before Adaption can be used.
* Fixed unit still not being able to move when fiberlock is removed by Magnetic Earth.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14124 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 020f8dc27..c16eecdda 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -5947,6 +5947,9 @@ int skill_castend_id(int tid, unsigned int tick, int id, intptr data) sc->data[SC_SPIRIT]->val3 == ud->skillid && ud->skillid != WZ_WATERBALL) sc->data[SC_SPIRIT]->val3 = 0; //Clear bounced spell check. + + if( sc->data[SC_DANCING] && skill_get_inf2(ud->skillid)&INF2_SONG_DANCE && sd ) + skill_blockpc_start(sd,BD_ADAPTATION,3000); } if( sd && ud->skillid != SA_ABRACADABRA ) // Hocus-Pocus has just set the data so leave it as it is.[Inkfish] @@ -7208,7 +7211,7 @@ static int skill_unit_onplace (struct skill_unit *src, struct block_list *bl, un else if( sc ) { int sec = skill_get_time2(sg->skill_id,sg->skill_lv); - if( status_change_start(bl,type,10000,sg->skill_lv,sg->group_id,0,0,sec,8) ) + if( status_change_start(bl,type,10000,sg->skill_lv,1,sg->group_id,0,sec,8) ) { const struct TimerData* td = sc->data[type]?get_timer(sc->data[type]->timer):NULL; if( td ) @@ -7794,8 +7797,8 @@ int skill_unit_onout (struct skill_unit *src, struct block_list *bl, unsigned in type = status_skill2sc(sg->skill_id); sce = (sc && type != -1)?sc->data[type]:NULL; - if (bl->prev==NULL || !src->alive || //Need to delete the trap if the source died. - (status_isdead(bl) && sg->unit_id != UNT_ANKLESNARE && sg->unit_id != UNT_SPIDERWEB)) + if( bl->prev==NULL || + (status_isdead(bl) && sg->unit_id != UNT_ANKLESNARE && sg->unit_id != UNT_SPIDERWEB) ) //Need to delete the trap if the source died. return 0; switch(sg->unit_id){ @@ -7820,7 +7823,7 @@ int skill_unit_onout (struct skill_unit *src, struct block_list *bl, unsigned in struct block_list *target = map_id2bl(sg->val2); if (target && target==bl) { - if (sce && sce->val2 == sg->group_id) + if (sce && sce->val3 == sg->group_id) status_change_end(bl,type,-1); sg->limit = DIFF_TICK(tick,sg->tick)+1000; } |