From 7c8e1245438b395d5742b936372fb55e3150b53c Mon Sep 17 00:00:00 2001 From: skotlex Date: Wed, 8 Nov 2006 16:17:30 +0000 Subject: - Moved the duel functions to pc.c since they are so totally out of place in atcommand.c - Fixed Spider Web not ending when hit by a fireelemental attack. - Cast-time reductions from status changes will not be executed until right before casting, to prevent status changes from ending when attempting to cast and the attempt fails (invalid cells, not enough sp, wrong target, etc, etc) - Added check to prevent Wand of Hermod from seeking for a partner to encore, since the partner is supposed to be the warp. - Moved the duel auto-reject on logout from map_quit to unit_free - Corrected the mob spawn reading code so that the event-name can be up to 50 characters long (which is the actual event length) and so that it can read spaces within them, it will also strip the leading/trailing quotes if you use them so that the event is actually found on mob-death (so you can do stuff like "My NPC::OnDead" as a valid event). - Moved the homunc inherit speed from the master from status_calc_pc to LoadEndAck, since the hom's speed matches that of the master each time the master changes maps. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9173 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/battle.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/map/battle.c') diff --git a/src/map/battle.c b/src/map/battle.c index c278a330a..b0a3995cd 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -212,8 +212,12 @@ int battle_attr_fix(struct block_list *src, struct block_list *target, int damag if (tsc->data[SC_ARMOR_ELEMENT].val3 == atk_elem) ratio -= tsc->data[SC_ARMOR_ELEMENT].val4; } - if(tsc->data[SC_SPIDERWEB].timer!=-1 && atk_elem == ELE_FIRE) // [Celest] + if(tsc->data[SC_SPIDERWEB].timer!=-1 && atk_elem == ELE_FIRE) + { // [Celest] damage <<= 1; + status_change_end(target, SC_SPIDERWEB, -1); + } + } return damage*ratio/100; } -- cgit v1.2.3-70-g09d2