summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-10 19:20:59 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-10 19:20:59 +0000
commitb77170410fbc46495d9d150a501b4387e410693a (patch)
tree08045f94d94f1398c35b49fc7164a61b17ae996a /src/map/status.c
parent1346352b049d049bf773d358cd9aae75788f5eae (diff)
downloadhercules-b77170410fbc46495d9d150a501b4387e410693a.tar.gz
hercules-b77170410fbc46495d9d150a501b4387e410693a.tar.bz2
hercules-b77170410fbc46495d9d150a501b4387e410693a.tar.xz
hercules-b77170410fbc46495d9d150a501b4387e410693a.zip
- Deluge/Violent Gale/Volcano tiles will now fail to be placed on cells that are already ocuppied by anything else.
- status_is_immune will now return 0 or the amount of immunity of the target. In which cases it returns 100 for WoH and the GTB bonus when they have passed the gtb_sc_immunity setting. This enables targetted spells to not "fail silently" unless GTB's magic reduction is 100. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9194 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/status.c b/src/map/status.c
index e74e7a5a5..f339e3479 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -4168,10 +4168,11 @@ int status_isimmune(struct block_list *bl)
{
struct status_change *sc =status_get_sc(bl);
if (sc && sc->count && sc->data[SC_HERMODE].timer != -1)
- return 1;
+ return 100;
+
if (bl->type == BL_PC &&
- ((TBL_PC*)bl)->special_state.no_magic_damage)
- return ((TBL_PC*)bl)->special_state.no_magic_damage > battle_config.gtb_sc_immunity;
+ ((TBL_PC*)bl)->special_state.no_magic_damage > battle_config.gtb_sc_immunity)
+ return ((TBL_PC*)bl)->special_state.no_magic_damage;
return 0;
}