diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-03-18 06:39:32 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-03-18 06:39:32 +0000 |
commit | 1c4d1899b28e53c5c4995e4f17ab03d2b4f22241 (patch) | |
tree | 42d5e0f31be4c0c0ccee5b85dbe0d02dcaad3b0b | |
parent | ed96cad9ab04308904437680b26332825e4c73c1 (diff) | |
download | hercules-1c4d1899b28e53c5c4995e4f17ab03d2b4f22241.tar.gz hercules-1c4d1899b28e53c5c4995e4f17ab03d2b4f22241.tar.bz2 hercules-1c4d1899b28e53c5c4995e4f17ab03d2b4f22241.tar.xz hercules-1c4d1899b28e53c5c4995e4f17ab03d2b4f22241.zip |
Fixed Royal Guard Prestige, bugreport:5406
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15715 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | src/map/status.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/status.c b/src/map/status.c index de91e4eba..0f5b2aefe 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -580,7 +580,7 @@ void initChangeTables(void) set_sc( LG_REFLECTDAMAGE , SC_REFLECTDAMAGE , SI_LG_REFLECTDAMAGE, SCB_NONE ); set_sc( LG_FORCEOFVANGUARD , SC_FORCEOFVANGUARD , SI_FORCEOFVANGUARD , SCB_MAXHP|SCB_DEF ); set_sc( LG_EXEEDBREAK , SC_EXEEDBREAK , SI_EXEEDBREAK , SCB_NONE ); - set_sc( LG_PRESTIGE , SC_PRESTIGE , SI_PRESTIGE , SCB_DEF2 ); + set_sc( LG_PRESTIGE , SC_PRESTIGE , SI_PRESTIGE , SCB_DEF ); set_sc( LG_BANDING , SC_BANDING , SI_BANDING , SCB_DEF2|SCB_WATK );// Renewal: atk2 & def2 set_sc( LG_PIETY , SC_BENEDICTIO , SI_BENEDICTIO , SCB_DEF_ELE ); set_sc( LG_EARTHDRIVE , SC_EARTHDRIVE , SI_EARTHDRIVE , SCB_DEF|SCB_ASPD ); @@ -4397,6 +4397,8 @@ static signed short status_calc_flee2(struct block_list *bl, struct status_chang def -= def * sc->data[SC_ROCK_CRUSHER]->val2 / 100; if( sc->data[SC_POWER_OF_GAIA] ) def += def * sc->data[SC_POWER_OF_GAIA]->val2 / 100; + if( sc->data[SC_PRESTIGE] ) + def += def * sc->data[SC_PRESTIGE]->val1 / 100; #if REMODE return (short)cap_value(def,SHRT_MIN,SHRT_MAX); #else @@ -4438,8 +4440,6 @@ static signed short status_calc_def2(struct block_list *bl, struct status_change def2 -= def2 * ( 14 * sc->data[SC_ANALYZE]->val1 ) / 100; if( sc->data[SC_ECHOSONG] ) def2 += def2 * sc->data[SC_ECHOSONG]->val2/100; - if( sc->data[SC_PRESTIGE] ) - def2 += def2 * sc->data[SC_PRESTIGE]->val1 / 100; if( sc->data[SC_SHIELDSPELL_REF] && sc->data[SC_SHIELDSPELL_REF]->val1 == 1 ) def2 += sc->data[SC_SHIELDSPELL_REF]->val2; if( sc->data[SC_BANDING] && sc->data[SC_BANDING]->val2 > 0 ) |