summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-07-29 10:31:41 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-07-29 10:31:41 +0000
commitec3b479889be0de9fae404d961728d2c474f8e4f (patch)
tree7d623d1af01234ceb44b564651fd521d805932fc /src/map
parente7bae02e70b98330adbf1a44ace9a9939636cd50 (diff)
downloadhercules-ec3b479889be0de9fae404d961728d2c474f8e4f.tar.gz
hercules-ec3b479889be0de9fae404d961728d2c474f8e4f.tar.bz2
hercules-ec3b479889be0de9fae404d961728d2c474f8e4f.tar.xz
hercules-ec3b479889be0de9fae404d961728d2c474f8e4f.zip
- Fixed a bug with Status Resist Potion.
- Fixed double char data save on quit with storage opened. BugReport 1794. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13013 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/map.c1
-rw-r--r--src/map/status.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 3f34f9661..95bec1b58 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -1636,6 +1636,7 @@ int map_quit(struct map_session_data *sd)
// Return loot to owner
if( sd->pd ) pet_lootitem_drop(sd->pd, sd);
+ if( sd->state.storage_flag == 1 ) sd->state.storage_flag = 0; // No need to Double Save Storage on Quit.
unit_remove_map_pc(sd,3);
pc_makesavestatus(sd);
diff --git a/src/map/status.c b/src/map/status.c
index 3341318d0..0cd4a03a6 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -4545,7 +4545,7 @@ int status_get_sc_def(struct block_list *bl, enum sc_type type, int rate, int ti
if( sd->reseff[type-SC_COMMON_MIN] > 0 )
rate -= rate*sd->reseff[type-SC_COMMON_MIN]/10000;
if( sd->sc.data[SC_COMMONSC_RESIST] )
- rate -= rate*sd->sc.data[SC_COMMONSC_RESIST]->val1;
+ rate -= rate*sd->sc.data[SC_COMMONSC_RESIST]->val1/100;
}
}
if (!(rand()%10000 < rate))