From 707ba8ba46715bb276310081b057b729b400262e Mon Sep 17 00:00:00 2001 From: Inkfish Date: Sun, 12 Sep 2010 12:24:55 +0000 Subject: All direct damages such as reflected damage or Tarot Card damage should not be redirected. (follow up to r14400) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14406 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/status.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'src/map/status.c') diff --git a/src/map/status.c b/src/map/status.c index 1e9eaf178..d2865f5fa 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -640,7 +640,6 @@ int status_charge(struct block_list* bl, int hp, int sp) //If flag&2, fail if target does not has enough to substract. //If flag&4, if killed, mob must not give exp/loot. //If flag&8, sp loss on dead target. -//If flag&16, reflect damage is done, which can't be absorbed by Devotion. [icescope] int status_damage(struct block_list *src,struct block_list *target,int hp, int sp, int walkdelay, int flag) { struct status_data *status; @@ -681,25 +680,9 @@ int status_damage(struct block_list *src,struct block_list *target,int hp, int s if( battle_config.invincible_nodamage && src && sc && sc->data[SC_INVINCIBLE] && !sc->data[SC_INVINCIBLEOFF] ) hp = 1; - if( hp && !(flag&(1|8|16)) ) { + if( hp && !(flag&(1|8)) ) { if( sc ) { struct status_change_entry *sce; - if( (sce = sc->data[SC_DEVOTION]) && src && battle_getcurrentskill(src) != PA_PRESSURE ) - { // Devotion prevents any of the other ailments from ending. - struct block_list *d_bl = map_id2bl(sce->val1); - - if( d_bl && ( - (d_bl->type == BL_MER && ((TBL_MER*)d_bl)->master && ((TBL_MER*)d_bl)->master->bl.id == target->id) || - (d_bl->type == BL_PC && ((TBL_PC*)d_bl)->devotion[sce->val2] == target->id) - ) && check_distance_bl(target, d_bl, sce->val3) ) - { - clif_damage(d_bl, d_bl, gettick(), 0, 0, hp, 0, 0, 0); - status_fix_damage(NULL, d_bl, hp, 0); - return 0; - } - - status_change_end(target, SC_DEVOTION, -1); - } if (sc->data[SC_STONE] && sc->opt1 == OPT1_STONE) status_change_end(target,SC_STONE,-1); status_change_end(target,SC_FREEZE,-1); -- cgit v1.2.3-70-g09d2