summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-25 11:08:48 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-25 11:08:48 +0000
commitee7dda128a9c3004db9eb43b5e3376f74033ab87 (patch)
tree29020b7e9ed87833a40179c98bc909ecec907383 /src/map/status.c
parent009e7837dea970aca8f6e2468c9cca310198fc21 (diff)
downloadhercules-ee7dda128a9c3004db9eb43b5e3376f74033ab87.tar.gz
hercules-ee7dda128a9c3004db9eb43b5e3376f74033ab87.tar.bz2
hercules-ee7dda128a9c3004db9eb43b5e3376f74033ab87.tar.xz
hercules-ee7dda128a9c3004db9eb43b5e3376f74033ab87.zip
* Some minor changes to Sacrifice in battle.c
* Set the Emperium to be immune to Sacrifice * Set the Emperium to be have max status effects immunity git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1294 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/map/status.c b/src/map/status.c
index e7fcf22b3..814121be0 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -2978,9 +2978,13 @@ int status_get_sc_def(struct block_list *bl, int type)
break;
}
- if(bl->type == BL_MOB && sc_def < 50)
- sc_def = 50;
- else if(bl->type == BL_PC) {
+ if(bl->type == BL_MOB) {
+ struct mob_data *md = (struct mob_data *)bl;
+ if (md && md->class_ == 1288)
+ return 0;
+ if (sc_def < 50)
+ sc_def = 50;
+ } else if(bl->type == BL_PC) {
struct status_change* sc_data = status_get_sc_data(bl);
if (sc_data && sc_data[SC_GOSPEL].timer != -1 &&
sc_data[SC_GOSPEL].val4 == BCT_PARTY &&