diff options
author | malufett <malufett.eat.my.binaries@gmail.com> | 2013-02-24 06:25:33 +0800 |
---|---|---|
committer | malufett <malufett.eat.my.binaries@gmail.com> | 2013-02-24 06:25:33 +0800 |
commit | adda8d74c3280ae1e3745591caafd9ce6e81ded7 (patch) | |
tree | 92bed0c62e31f392098c529184f78848dc9d6d05 /src/map/battle.c | |
parent | 6c6fbf026f039eeeaab4d1e6dd14155067b8075e (diff) | |
download | hercules-adda8d74c3280ae1e3745591caafd9ce6e81ded7.tar.gz hercules-adda8d74c3280ae1e3745591caafd9ce6e81ded7.tar.bz2 hercules-adda8d74c3280ae1e3745591caafd9ce6e81ded7.tar.xz hercules-adda8d74c3280ae1e3745591caafd9ce6e81ded7.zip |
Fixed Bug #7091
-Updated SN_SIGHT to its RE behavior.
-Updated RE behavior that deals with NPC dialogs and using items/skills.
Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 930be1478..36237c79e 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -2973,7 +2973,10 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo skillratio += -100 + 100 * skill_lv; break; } - +#ifdef RENEWAL + if( sc && sc->data[SC_TRUESIGHT] ) + skillratio += 2*sc->data[SC_TRUESIGHT]->val1; +#endif ATK_RATE(skillratio); //Constant/misc additions from skills @@ -3068,8 +3071,10 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo //The following are applied on top of current damage and are stackable. if ( sc ) { +#ifndef RENEWAL if( sc->data[SC_TRUESIGHT] ) ATK_ADDRATE(2*sc->data[SC_TRUESIGHT]->val1); +#endif if( sc->data[SC_GLOOMYDAY_SK] && ( skill_id == LK_SPIRALPIERCE || skill_id == KN_BRANDISHSPEAR || skill_id == CR_SHIELDBOOMERANG || skill_id == PA_SHIELDCHAIN || |